summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_set.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-08-02 17:05:11 +0200
committerFlorian Westphal <fw@strlen.de>2018-08-04 14:12:47 +0200
commit82d278c19f8f187e78c90c91834018b16c007098 (patch)
tree8089b7928f33a409e7404b75cd7cb83346e5791a /extensions/libxt_set.h
parentc2895eaf7a9d604c4aa10848ad46cdde48a00357 (diff)
xtables: Free chains in NFT_COMPAT_CHAIN_ADD jobs
Chains in NFT_COMPAT_CHAIN_ADD usually have to be freed because they are not added to the cache. There is one exception though, namely when zeroing counters: nft_chain_zero_counters() adds a chain object it took from chain cache. To distinguish this situation from the others, introduce NFT_COMPAT_CHAIN_ZERO batch object type, which is treated just like NFT_COMPAT_CHAIN_ADD but batch_obj_del() does not free it's chain. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libxt_set.h')
0 files changed, 0 insertions, 0 deletions