diff options
author | Florian Westphal <fw@strlen.de> | 2016-03-29 09:05:16 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-04-07 09:58:49 (GMT) |
commit | ff76def3bd7e816fe0ca7f0840065c566a42ba2f (patch) | |
tree | 5c22c4821fcce9ebb7733c4c6494a2495e94530c /net/ipv4/netfilter | |
parent | 0a1a37b6d62e6864a77a82e925217c720f91f963 (diff) | |
download | linux-ff76def3bd7e816fe0ca7f0840065c566a42ba2f.tar.xz |
netfilter: arp_tables: register table in initns
arptables is broken since we didn't register the table anymore --
even 'arptables -L' fails.
Fixes: b9e69e127397187b ("netfilter: xtables: don't hook tables by default")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4/netfilter')
-rw-r--r-- | net/ipv4/netfilter/arptable_filter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/arptable_filter.c b/net/ipv4/netfilter/arptable_filter.c index dd8c80d..8f8713b 100644 --- a/net/ipv4/netfilter/arptable_filter.c +++ b/net/ipv4/netfilter/arptable_filter.c @@ -81,6 +81,12 @@ static int __init arptable_filter_init(void) return ret; } + ret = arptable_filter_table_init(&init_net); + if (ret) { + unregister_pernet_subsys(&arptable_filter_net_ops); + kfree(arpfilter_ops); + } + return ret; } |