summaryrefslogtreecommitdiffstats
path: root/tests/expr-concat
blob: d9c553b653be53289e9baefbeaf72a6464db38b9 (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
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,	\
}