diff options
| author | wenxu <wenxu@ucloud.cn> | 2019-06-02 09:49:26 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-06 05:52:59 -0400 |
| commit | 16e6427c88c5b7e7b6612f6c286d5f71d659e5be (patch) | |
| tree | 86956069aa6f91fd8d0ae777c95353c15bc7c7fb /net | |
| parent | 8b5e07d7ee95e3c22cb301731f87d95f58639591 (diff) | |
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: c9bb6165a16e ("netfilter: nf_conntrack_bridge: fix CONFIG_IPV6=y")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
| -rw-r--r-- | net/ipv6/netfilter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/netfilter.c b/net/ipv6/netfilter.c index d9673e10c60c..86048dce301b 100644 --- a/net/ipv6/netfilter.c +++ b/net/ipv6/netfilter.c | |||
| @@ -238,8 +238,10 @@ static const struct nf_ipv6_ops ipv6ops = { | |||
| 238 | .route_input = ip6_route_input, | 238 | .route_input = ip6_route_input, |
| 239 | .fragment = ip6_fragment, | 239 | .fragment = ip6_fragment, |
| 240 | .reroute = nf_ip6_reroute, | 240 | .reroute = nf_ip6_reroute, |
| 241 | #if IS_MODULE(CONFIG_IPV6) | 241 | #if IS_MODULE(CONFIG_IPV6) && IS_ENABLED(CONFIG_NF_DEFRAG_IPV6) |
| 242 | .br_defrag = nf_ct_frag6_gather, | 242 | .br_defrag = nf_ct_frag6_gather, |
| 243 | #endif | ||
| 244 | #if IS_MODULE(CONFIG_IPV6) | ||
| 243 | .br_fragment = br_ip6_fragment, | 245 | .br_fragment = br_ip6_fragment, |
| 244 | #endif | 246 | #endif |
| 245 | }; | 247 | }; |
