diff options
author | Mahesh Bandewar <maheshb@google.com> | 2016-09-16 22:59:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-19 08:25:22 +0300 |
commit | e8bffe0cf964f0330595bb376b74921cccdaac88 (patch) | |
tree | c3361b07773fa3d0900c4a5b10b44c77a3155806 /include | |
parent | d409b84768037ad03d1d73538d99fb902adf7365 (diff) | |
download | linux-e8bffe0cf964f0330595bb376b74921cccdaac88.tar.xz |
net: Add _nf_(un)register_hooks symbols
Add _nf_register_hooks() and _nf_unregister_hooks() calls which allow
caller to hold RTNL mutex.
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
CC: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 9230f9aee896..e82b76781bf6 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -133,6 +133,8 @@ int nf_register_hook(struct nf_hook_ops *reg); void nf_unregister_hook(struct nf_hook_ops *reg); int nf_register_hooks(struct nf_hook_ops *reg, unsigned int n); void nf_unregister_hooks(struct nf_hook_ops *reg, unsigned int n); +int _nf_register_hooks(struct nf_hook_ops *reg, unsigned int n); +void _nf_unregister_hooks(struct nf_hook_ops *reg, unsigned int n); /* Functions to register get/setsockopt ranges (non-inclusive). You need to check permissions yourself! */ |