summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0026prio_netdev_1
diff options
context:
space:
mode:
authorMáté Eckl <ecklm94@gmail.com>2018-08-24 17:47:15 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-30 12:11:45 +0200
commit34ce4e4a7bb61dbf8ce7b3d018a36ab08fb6faf3 (patch)
tree60eb5d6fcc8de9ca8c59759a8138f8b3df72a392 /tests/shell/testcases/chains/0026prio_netdev_1
parenta187d26259c63df995f41e5920d5961c93e28bff (diff)
test: shell: Test cases for standard chain prios
Signed-off-by: Máté Eckl <ecklm94@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/chains/0026prio_netdev_1')
-rwxr-xr-xtests/shell/testcases/chains/0026prio_netdev_115
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/shell/testcases/chains/0026prio_netdev_1 b/tests/shell/testcases/chains/0026prio_netdev_1
new file mode 100755
index 00000000..ae022830
--- /dev/null
+++ b/tests/shell/testcases/chains/0026prio_netdev_1
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+family=netdev
+ hook=ingress
+ for prioname in raw mangle dstnat security srcnat
+ do
+ $NFT add table $family x
+ $NFT add chain $family x y "{ type filter hook $hook device lo priority $prioname; }" &> /dev/null
+ if (($? == 0))
+ then
+ echo "E: $prioname should not be a valid priority name for netdev family chains." >&2
+ exit 0
+ fi
+ done
+exit 1