]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: delete flowtable after flush chain
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 25 Sep 2019 08:24:45 +0000 (10:24 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 25 Sep 2019 08:25:57 +0000 (10:25 +0200)
Returns EBUSY on buggy kernels.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/flowtable/0009deleteafterflush_0 [new file with mode: 0755]

diff --git a/tests/shell/testcases/flowtable/0009deleteafterflush_0 b/tests/shell/testcases/flowtable/0009deleteafterflush_0
new file mode 100755 (executable)
index 0000000..2cda563
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+$NFT add table x
+$NFT add chain x y
+$NFT add flowtable x f { hook ingress priority 0\; devices = { lo }\;}
+$NFT add rule x y flow add @f
+$NFT flush chain x y
+$NFT delete flowtable x f