diff options
Diffstat (limited to 'tests/shell/testcases/rule_management/0005replace_1')
-rwxr-xr-x | tests/shell/testcases/rule_management/0005replace_1 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/shell/testcases/rule_management/0005replace_1 b/tests/shell/testcases/rule_management/0005replace_1 new file mode 100755 index 00000000..e82995a5 --- /dev/null +++ b/tests/shell/testcases/rule_management/0005replace_1 @@ -0,0 +1,11 @@ +#!/bin/bash + +# tests for Netfilter bug #965 and the related fix +# (regarding rule management with a given position/handle spec) + +set -e +$NFT add table t +$NFT add chain t c +# kernel should return ENOENT +$NFT replace rule t c handle 2 drop 2>/dev/null +echo "E: missing kernel ENOENT" >&2 |