]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: Fix position of replaced rules in cache
authorPhil Sutter <phil@nwl.cc>
Tue, 15 Jan 2019 22:23:04 +0000 (23:23 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 18 Jan 2019 01:42:08 +0000 (02:42 +0100)
commit5ca9acf51adf9dcc8e0d82cd8f5b9b2514f900ee
tree62295273bac218be53870f88dc46f527f5ec78d2
parent2b801fc515ae094d04207e840ed191196292b968
xtables: Fix position of replaced rules in cache

When replacing a rule, the replacement was simply appended to the
chain's rule list. Instead, insert it where the rule it replaces was.

This also fixes for zero counters command to remove the old rule from
cache.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c
iptables/nft.h
iptables/xtables-arp.c
iptables/xtables-eb.c
iptables/xtables.c