summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0025prio_arp_1
blob: 1a172629444297bf370c99d9ea83499ce53ac45a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

family=arp
	for hook in input output
	do
		for prioname in raw mangle dstnat security srcnat
		do
			$NFT add table $family x
			$NFT add chain $family x y "{ type filter hook $hook priority $prioname; }" &> /dev/null
			if (($? == 0))
			then
				echo "E: $prioname should not be a valid priority name for arp family chains." >&2
				exit 1
			fi
		done
	done
exit 0