• Daniel Borkmann's avatar
    netfilter: nf_dup{4, 6}: fix build error when nf_conntrack disabled · a82b0e63
    Daniel Borkmann authored
    While testing various Kconfig options on another issue, I found that
    the following one triggers as well on allmodconfig and nf_conntrack
    disabled:
    
      net/ipv4/netfilter/nf_dup_ipv4.c: In function ‘nf_dup_ipv4’:
      net/ipv4/netfilter/nf_dup_ipv4.c:72:20: error: ‘nf_skb_duplicated’ undeclared (first use in this function)
        if (this_cpu_read(nf_skb_duplicated))
      [...]
      net/ipv6/netfilter/nf_dup_ipv6.c: In function ‘nf_dup_ipv6’:
      net/ipv6/netfilter/nf_dup_ipv6.c:66:20: error: ‘nf_skb_duplicated’ undeclared (first use in this function)
        if (this_cpu_read(nf_skb_duplicated))
    
    Fix it by including directly the header where it is defined.
    
    Fixes: bbde9fc1 ("netfilter: factor out packet duplication for IPv4/IPv6")
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a82b0e63
nf_dup_ipv6.c 2.46 KB