blob: de590b77de89fbcca05d2ed7ce3c94d59688934b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
# Make sure nft does not segfault when given invalid syntax in 'add flowtable' commands.
$NFT add table ip t
$NFT add flowtable ip t f { hook ingress priority 10\; devices = { lo } }
[[ $? -eq 1 ]] || exit 1
$NFT add flowtable ip t f { hook ingress\; priority 10\; }
[[ $? -eq 1 ]] || exit 1
$NFT add flowtable ip t f { hook ingress priority 10\; }
[[ $? -eq 1 ]] || exit 1
|