summaryrefslogtreecommitdiffstats
path: root/tests/expr-concat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expr-concat')
-rwxr-xr-xtests/expr-concat19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/expr-concat b/tests/expr-concat
new file mode 100755
index 00000000..d9c553b6
--- /dev/null
+++ b/tests/expr-concat
@@ -0,0 +1,19 @@
+#! nft -f
+
+# Concat element mismatch
+rule add ip filter output ip daddr . tcp sport . tcp dport { \
+ 192.168.0.1 . 22, \
+ 192.168.0.1 . 80, \
+}
+
+# Concat type mismatch
+rule add 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
+rule add ip filter output ip daddr . tcp dport { \
+ 192.168.0.1 . 22, \
+ 192.168.0.1 . 80, \
+}