Use xt_id match to track own rules
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 24 Jan 2016 16:43:30 +0000 (17:43 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 24 Jan 2016 16:56:02 +0000 (17:56 +0100)
commit410cff5e62db45e8415bf25bf50395b4e7e22482
treeef74994935fa4efd86e970d9fed16b6baa57e925
parent18a503d0125aebc3a8d62dad1c02e6bb1da92eb6
Use xt_id match to track own rules

Instead of relying on the delegate_* chains to isolate own toplevel
rules from user supplied ones, use the xt_id match to attach a magic
value to fw3 rules which allows selective cleanup regardless of the
container chain.

Also add an experimental "fw3 gc" call to garbage collect empty chains.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
defaults.c
forwards.c
iptables.c
iptables.h
main.c
rules.c
snats.c
zones.c