aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/netfilter.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-05-23 09:17:12 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-23 09:26:06 +0200
commit1f4b24397d3e164dde7026b91056e67304724fb6 (patch)
tree9b9a6679e39e9f3a98c39763538b480b06251449 /include/linux/netfilter.h
parentnetfilter: ip6t_rpfilter: provide input interface for route lookup (diff)
downloadwireguard-linux-1f4b24397d3e164dde7026b91056e67304724fb6.tar.xz
wireguard-linux-1f4b24397d3e164dde7026b91056e67304724fb6.zip
netfilter: add struct nf_ct_hook and use it
Move the nf_ct_destroy indirection to the struct nf_ct_hook. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netfilter.h')
-rw-r--r--include/linux/netfilter.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index 72f5871b9a0a..75ded6f6eebe 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -373,13 +373,18 @@ nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl, u_int8_t family)
extern void (*ip_ct_attach)(struct sk_buff *, const struct sk_buff *) __rcu;
void nf_ct_attach(struct sk_buff *, const struct sk_buff *);
-extern void (*nf_ct_destroy)(struct nf_conntrack *) __rcu;
#else
static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {}
#endif
struct nf_conn;
enum ip_conntrack_info;
+
+struct nf_ct_hook {
+ void (*destroy)(struct nf_conntrack *);
+};
+extern struct nf_ct_hook __rcu *nf_ct_hook;
+
struct nlattr;
struct nfnl_ct_hook {