summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/shell/testcases/sets/dumps/typeof_sets_0.nft9
-rwxr-xr-xtests/shell/testcases/sets/typeof_sets_09
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/dumps/typeof_sets_0.nft b/tests/shell/testcases/sets/dumps/typeof_sets_0.nft
index 68b4dcc5..6f5b83af 100644
--- a/tests/shell/testcases/sets/dumps/typeof_sets_0.nft
+++ b/tests/shell/testcases/sets/dumps/typeof_sets_0.nft
@@ -50,6 +50,11 @@ table inet t {
elements = { "eth0" . 10.1.1.2 . 42 }
}
+ set s11 {
+ typeof vlan id . ip saddr
+ elements = { 3567 . 1.2.3.4 }
+ }
+
chain c1 {
osf name @s1 accept
}
@@ -85,4 +90,8 @@ table inet t {
chain c10 {
iifname . ip saddr . ipsec in reqid @s10 accept
}
+
+ chain c11 {
+ vlan id . ip saddr @s11 accept
+ }
}
diff --git a/tests/shell/testcases/sets/typeof_sets_0 b/tests/shell/testcases/sets/typeof_sets_0
index 5fc6a121..9f777a8c 100755
--- a/tests/shell/testcases/sets/typeof_sets_0
+++ b/tests/shell/testcases/sets/typeof_sets_0
@@ -55,6 +55,11 @@ EXPECTED="table inet t {
elements = { \"eth0\" . 10.1.1.2 . 42 }
}
+ set s11 {
+ typeof vlan id . ip saddr
+ elements = { 3567 . 1.2.3.4 }
+ }
+
chain c1 {
osf name @s1 accept
}
@@ -90,6 +95,10 @@ EXPECTED="table inet t {
chain c10 {
meta iifname . ip saddr . ipsec in reqid @s10 accept
}
+
+ chain c11 {
+ ether type vlan vlan id . ip saddr @s11 accept
+ }
}"
set -e