diff options
author | wenxu <wenxu@ucloud.cn> | 2020-08-28 23:14:31 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-31 12:26:39 -0700 |
commit | 1d97898b36bab91e8ffb38a660cc40eaba613f88 (patch) | |
tree | 471d117e7c2acfe1bfd34521481501275248ceb8 /net/ipv6/af_inet6.c | |
parent | 353ff8ccadbeb42937c7a181e3851333ef46a0ee (diff) | |
download | linux-riscv-1d97898b36bab91e8ffb38a660cc40eaba613f88.tar.gz linux-riscv-1d97898b36bab91e8ffb38a660cc40eaba613f88.tar.bz2 linux-riscv-1d97898b36bab91e8ffb38a660cc40eaba613f88.zip |
ipv6: add ipv6_fragment hook in ipv6_stub
Add ipv6_fragment to ipv6_stub to avoid calling netfilter when
access ip6_fragment.
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index d9a14935f402..e648fbebb167 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -1027,6 +1027,7 @@ static const struct ipv6_stub ipv6_stub_impl = { .xfrm6_rcv_encap = xfrm6_rcv_encap, #endif .nd_tbl = &nd_tbl, + .ipv6_fragment = ip6_fragment, }; static const struct ipv6_bpf_stub ipv6_bpf_stub_impl = { |