Skip to content

Commit c9bb616

Browse files
ummakynesdavem330
authored andcommitted
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: 764dd16 ("netfilter: nf_conntrack_bridge: add support for IPv6") Reported-by: Stephen Rothwell <[email protected]> Reported-by: Yuehaibing <[email protected]> Reported-by: kbuild test robot <[email protected]> Reported-by: wenxu <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]> Signed-off-by: wenxu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7b3ed2a commit c9bb616

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/linux/netfilter_ipv6.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ static inline int nf_ip6_route(struct net *net, struct dst_entry **dst,
9696
#endif
9797
}
9898

99+
#include <net/netfilter/ipv6/nf_defrag_ipv6.h>
100+
99101
static inline int nf_ipv6_br_defrag(struct net *net, struct sk_buff *skb,
100102
u32 user)
101103
{

net/ipv6/netfilter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static const struct nf_ipv6_ops ipv6ops = {
238238
.route_input = ip6_route_input,
239239
.fragment = ip6_fragment,
240240
.reroute = nf_ip6_reroute,
241-
#if IS_MODULE(CONFIG_NF_CONNTRACK_BRIDGE)
241+
#if IS_MODULE(CONFIG_IPV6)
242242
.br_defrag = nf_ct_frag6_gather,
243243
.br_fragment = br_ip6_fragment,
244244
#endif

0 commit comments

Comments
 (0)