summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/flowtable/0006segfault_0
blob: fb7c52feb4cec16952fcd56279a202817eef2733 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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