]> git.ipfire.org Git - thirdparty/iptables.git/commit
rework automatic creation of built-in table and chains
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 Oct 2012 10:39:46 +0000 (11:39 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:17 +0000 (23:50 +0100)
commite17b5f15c2beda86565a8f4e55fdf12ceb20dd59
treeac32b7b568fac6a654aa0ff3eafd1b5e7fcce059
parentc74f398c58e7b77ca1c82a15d0b2e9eed4fb82ad
rework automatic creation of built-in table and chains

This patch reworks the automatic creation of built-in table and
chains. Now it initializes all built-in chains belonging a table
at once.

This happens with commands: -P, -A, -I, -N

Note that xtables skips chain initialization if it notices that
the table already exists in the kernel.

Thanks to Tomasz Bursztyka for spotting problems with -N.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c