]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables: Implement --change-counters command
authorPhil Sutter <phil@nwl.cc>
Tue, 21 Nov 2023 22:14:47 +0000 (23:14 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 23 Nov 2023 16:59:42 +0000 (17:59 +0100)
commitf340b7b6816beaeeebf6cefa819939cf70ae18f4
tree39e955718b979a3038e710c3e1c4693f1261643c
parentc0bd98c9339b4975c9d52739d638a3c2bdf9a7ff
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>
iptables/nft-cmd.c
iptables/nft-cmd.h
iptables/nft.c
iptables/nft.h
iptables/tests/shell/testcases/ebtables/0010-change-counters_0 [new file with mode: 0755]
iptables/xtables-eb.c