Skip to content

Commit 16e6427

Browse files
wenxuummakynes
authored andcommitted
netfilter: ipv6: Fix undefined symbol nf_ct_frag6_gather
CONFIG_NETFILTER=m and CONFIG_NF_DEFRAG_IPV6 is not set ERROR: "nf_ct_frag6_gather" [net/ipv6/ipv6.ko] undefined! Fixes: c9bb616 ("netfilter: nf_conntrack_bridge: fix CONFIG_IPV6=y") Reported-by: kbuild test robot <[email protected]> Signed-off-by: wenxu <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 8b5e07d commit 16e6427

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

net/ipv6/netfilter.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,10 @@ 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_IPV6)
241+
#if IS_MODULE(CONFIG_IPV6) && IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
242242
.br_defrag = nf_ct_frag6_gather,
243+
#endif
244+
#if IS_MODULE(CONFIG_IPV6)
243245
.br_fragment = br_ip6_fragment,
244246
#endif
245247
};

0 commit comments

Comments
 (0)