summaryrefslogtreecommitdiff
path: root/tests/match_target.t
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2018-01-04 13:21:26 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2018-01-04 13:21:26 +0100
commitad92ed77e77fe421a86f0fde907c51286ed47928 (patch)
tree412d16a99a72446666734d404ffd380eb85d6f49 /tests/match_target.t
parent0a81ab50306539788e2dd0471f3b1ed5b9dcc5ef (diff)
downloadipset-ad92ed77e77fe421a86f0fde907c51286ed47928.tar.gz
Fix "don't update counters" mode when counters used at the matching
The matching of the counters was not taken into account, fixed.
Diffstat (limited to 'tests/match_target.t')
-rw-r--r--tests/match_target.t6
1 files changed, 6 insertions, 0 deletions
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