aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter_bridge/ebtables.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-04-20 00:45:48 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-04-26 09:30:21 +0200
commitaee12a0a3727e16fb837367c4755cb6daaf45109 (patch)
treec684d83f1c47cea6513993e40ffb3b9c6a5f1b13 /include/linux/netfilter_bridge/ebtables.h
parentnetfilter: decnet: only register hooks in init namespace (diff)
downloadlinux-dev-aee12a0a3727e16fb837367c4755cb6daaf45109.tar.xz
linux-dev-aee12a0a3727e16fb837367c4755cb6daaf45109.zip
ebtables: remove nf_hook_register usage
Similar to ip_register_table, pass nf_hook_ops to ebt_register_table(). This allows to handle hook registration also via pernet_ops and allows us to avoid use of legacy register_hook api. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to '')
-rw-r--r--include/linux/netfilter_bridge/ebtables.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/netfilter_bridge/ebtables.h b/include/linux/netfilter_bridge/ebtables.h
index 984b2112c77b..a30efb437e6d 100644
--- a/include/linux/netfilter_bridge/ebtables.h
+++ b/include/linux/netfilter_bridge/ebtables.h
@@ -109,8 +109,10 @@ struct ebt_table {
#define EBT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) & \
~(__alignof__(struct _xt_align)-1))
extern struct ebt_table *ebt_register_table(struct net *net,
- const struct ebt_table *table);
-extern void ebt_unregister_table(struct net *net, struct ebt_table *table);
+ const struct ebt_table *table,
+ const struct nf_hook_ops *);
+extern void ebt_unregister_table(struct net *net, struct ebt_table *table,
+ const struct nf_hook_ops *);
extern unsigned int ebt_do_table(struct sk_buff *skb,
const struct nf_hook_state *state,
struct ebt_table *table);