summaryrefslogtreecommitdiffstats
path: root/tests/files/expr-concat
blob: bb284cceb551f0bcf9a3ad2cf1b44c3ae8967e6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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,	\
}