diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-21 23:14:47 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-11-23 17:59:42 +0100 |
commit | f340b7b6816beaeeebf6cefa819939cf70ae18f4 (patch) | |
tree | 39e955718b979a3038e710c3e1c4693f1261643c /iptables/nft.h | |
parent | c0bd98c9339b4975c9d52739d638a3c2bdf9a7ff (diff) |
ebtables: Implement --change-counters command
Treat it like --replace against the same rule with changed counters.
The operation is obviously not atomic, so rule counters may change in
kernel while the rule is fetched, modified and replaced.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r-- | iptables/nft.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft.h b/iptables/nft.h index 5acbbf82..79f1e037 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -72,6 +72,7 @@ enum obj_update_type { NFT_COMPAT_RULE_SAVE, NFT_COMPAT_RULE_ZERO, NFT_COMPAT_BRIDGE_USER_CHAIN_UPDATE, + NFT_COMPAT_RULE_CHANGE_COUNTERS, }; struct cache_chain { |