Skip to content

Commit

Permalink
netfilter: arp_tables: register table in initns
Browse files Browse the repository at this point in the history
arptables is broken since we didn't register the table anymore --
even 'arptables -L' fails.

Fixes: b9e69e1 ("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>
  • Loading branch information
Florian Westphal authored and Pablo Neira Ayuso committed Apr 7, 2016
1 parent 0a1a37b commit ff76def
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions net/ipv4/netfilter/arptable_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ff76def

Please sign in to comment.