diff options
author | Patrick McHardy <kaber@trash.net> | 2009-03-18 04:55:00 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-03-18 04:55:00 +0100 |
commit | fac10ea799fe9b6158d74f66d6ad46536d38a545 (patch) | |
tree | 8c093bcbb2144aab54c70103e6ed438456ae0d48 /tests/expr-concat |
Initial commitv0.01-alpha1
Diffstat (limited to 'tests/expr-concat')
-rwxr-xr-x | tests/expr-concat | 19 |
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, \ +} |