This effectively flushes all built-in chains and removes user-defined
ones. Since compat layer takes care of built-in table/chain creation, it
is sufficient to just drop the relevant table.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
break;*/
/*case 7 :*/ /* atomic-init */
/*case 10:*/ /* atomic-save */
- /*case 11:*/ /* init-table */
+ case 11: /* init-table */
+ nft_table_flush(h, *table);
+ return 1;
/*
replace->command = c;
if (OPT_COMMANDS)