summaryrefslogtreecommitdiffstats
path: root/tests/files/expr-concat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/expr-concat')
-rw-r--r--tests/files/expr-concat19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/files/expr-concat b/tests/files/expr-concat
new file mode 100644
index 00000000..bb284cce
--- /dev/null
+++ b/tests/files/expr-concat
@@ -0,0 +1,19 @@
+#! nft -f
+
+# Concat element mismatch
+add rule ip filter output ip daddr . tcp sport . tcp dport { \
+ 192.168.0.1 . 22, \
+ 192.168.0.1 . 80, \
+}
+
+# Concat type mismatch
+add rule ip filter output ip daddr . tcp dport { \
+ 192.168.0.1 . 192.168.0.2, \
+ 192.168.0.1 . 192.168.0.3, \
+}
+
+# Concat expression
+add rule ip filter output ip daddr . tcp dport { \
+ 192.168.0.1 . 22, \
+ 192.168.0.1 . 80, \
+}