From ad92ed77e77fe421a86f0fde907c51286ed47928 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 4 Jan 2018 13:21:26 +0100 Subject: Fix "don't update counters" mode when counters used at the matching The matching of the counters was not taken into account, fixed. --- tests/match_target.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/match_target.t') diff --git a/tests/match_target.t b/tests/match_target.t index 3d7ed1b..4141ce6 100644 --- a/tests/match_target.t +++ b/tests/match_target.t @@ -112,4 +112,10 @@ 0 ./check_klog.sh 10.255.255.64 udp 1025 netiface # Destroy sets and rules 0 ./iptables.sh inet stop +# Create set and rules for the counter test +0 ./iptables.sh inet counter +# Check packet counter +0 ipset l test |grep -q '^10.255.255.64 packets 2' +# Destroy sets and rules +0 ./iptables.sh inet stop # eof -- cgit v1.2.1