]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_conntrack_bridge: fix CONFIG_IPV6=y
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 31 May 2019 09:15:26 +0000 (11:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 May 2019 16:45:26 +0000 (09:45 -0700)
commitc9bb6165a16e6d5498981a6c777b94a78e74462b
tree95d2d2160b057ef4983147d5a6fa6c4fb16b44bb
parent7b3ed2a137b077bc0967352088b0adb6049eed20
netfilter: nf_conntrack_bridge: fix CONFIG_IPV6=y

This patch fixes a few problems with CONFIG_IPV6=y and
CONFIG_NF_CONNTRACK_BRIDGE=m:

In file included from net/netfilter/utils.c:5:
include/linux/netfilter_ipv6.h: In function 'nf_ipv6_br_defrag':
include/linux/netfilter_ipv6.h:110:9: error: implicit declaration of function 'nf_ct_frag6_gather'; did you mean 'nf_ct_attach'? [-Werror=implicit-function-declaration]

And these too:

net/ipv6/netfilter.c:242:2: error: unknown field 'br_defrag' specified in initializer
net/ipv6/netfilter.c:243:2: error: unknown field 'br_fragment' specified in initializer

This patch includes an original chunk from wenxu.

Fixes: 764dd163ac92 ("netfilter: nf_conntrack_bridge: add support for IPv6")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Yuehaibing <yuehaibing@huawei.com>
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter_ipv6.h
net/ipv6/netfilter.c