From 5ad475fce5a138d3a8b58bde4a41b0537d15b952 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 21 Apr 2023 00:37:07 +0200 Subject: evaluate: bail out if new flowtable does not specify hook and priority If user forgets to specify the hook and priority and the flowtable does not exist, then bail out: # cat flowtable-incomplete.nft table t { flowtable f { devices = { lo } } } # nft -f /tmp/k flowtable-incomplete.nft:2:12-12: Error: missing hook and priority in flowtable declaration flowtable f { ^ Update one existing tests/shell to specify a hook and priority. Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/owner/0001-flowtable-uaf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/shell/testcases/owner') diff --git a/tests/shell/testcases/owner/0001-flowtable-uaf b/tests/shell/testcases/owner/0001-flowtable-uaf index 4efbe75c..8b7a551c 100755 --- a/tests/shell/testcases/owner/0001-flowtable-uaf +++ b/tests/shell/testcases/owner/0001-flowtable-uaf @@ -6,6 +6,7 @@ $NFT -f - <