aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/netfilter_ipv6.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2023-03-07 16:31:30 -0500
committerFlorian Westphal <fw@strlen.de>2023-03-08 14:25:40 +0100
commit28e144cf5f72ce1c304571bc448e37c27495903a (patch)
treecc69fb3a89b83153194ad4c48f837b953dfc7119 /include/linux/netfilter_ipv6.h
parentnetfilter: bridge: move pskb_trim_rcsum out of br_nf_check_hbh_len (diff)
downloadwireguard-linux-28e144cf5f72ce1c304571bc448e37c27495903a.tar.xz
wireguard-linux-28e144cf5f72ce1c304571bc448e37c27495903a.zip
netfilter: move br_nf_check_hbh_len to utils
Rename br_nf_check_hbh_len() to nf_ip6_check_hbh_len() and move it to netfilter utils, so that it can be used by other modules, like ovs and tc. Signed-off-by: Xin Long <lucien.xin@gmail.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org> Reviewed-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/linux/netfilter_ipv6.h')
-rw-r--r--include/linux/netfilter_ipv6.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netfilter_ipv6.h b/include/linux/netfilter_ipv6.h
index 48314ade1506..7834c0be2831 100644
--- a/include/linux/netfilter_ipv6.h
+++ b/include/linux/netfilter_ipv6.h
@@ -197,6 +197,8 @@ static inline int nf_cookie_v6_check(const struct ipv6hdr *iph,
__sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook,
unsigned int dataoff, u_int8_t protocol);
+int nf_ip6_check_hbh_len(struct sk_buff *skb, u32 *plen);
+
int ipv6_netfilter_init(void);
void ipv6_netfilter_fini(void);