summaryrefslogtreecommitdiff
path: root/net/netfilter/nf_internals.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-05-14 23:46:56 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-23 09:14:05 +0200
commit06cad3acf07893820391bda912bebc3a8c058994 (patch)
tree7980b3592fd44f4e6d2ab923d4a914d90de1ab2b /net/netfilter/nf_internals.h
parent4e25ceb80b585891c5e2a6edfa481bc4709e9544 (diff)
netfilter: core: export raw versions of add/delete hook functions
This will allow the nat core to reuse the nf_hook infrastructure to maintain nat lookup functions. The raw versions don't assume a particular hook location, the functions get added/deleted from the hook blob that is passed to the functions. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_internals.h')
-rw-r--r--net/netfilter/nf_internals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/netfilter/nf_internals.h b/net/netfilter/nf_internals.h
index 18f6d7ae995b..e15779fd58e3 100644
--- a/net/netfilter/nf_internals.h
+++ b/net/netfilter/nf_internals.h
@@ -15,4 +15,9 @@ void nf_queue_nf_hook_drop(struct net *net);
/* nf_log.c */
int __init netfilter_log_init(void);
+/* core.c */
+void nf_hook_entries_delete_raw(struct nf_hook_entries __rcu **pp,
+ const struct nf_hook_ops *reg);
+int nf_hook_entries_insert_raw(struct nf_hook_entries __rcu **pp,
+ const struct nf_hook_ops *reg);
#endif