summaryrefslogtreecommitdiffstats
path: root/tests/shell/features/flowtable_counter.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/features/flowtable_counter.sh')
-rwxr-xr-xtests/shell/features/flowtable_counter.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/shell/features/flowtable_counter.sh b/tests/shell/features/flowtable_counter.sh
new file mode 100755
index 00000000..a4c4c621
--- /dev/null
+++ b/tests/shell/features/flowtable_counter.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# 53c2b2899af7 ("netfilter: flowtable: add counter support")
+# v5.7-rc1~146^2~12^2~16
+
+EXPECTED="table ip filter2 {
+ flowtable main_ft2 {
+ hook ingress priority filter
+ devices = { lo }
+ counter
+ }
+}"
+
+$NFT -f - <<< $EXPECTED
+
+diff -u <($NFT list ruleset) - <<<"$EXPECTED"