summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/rule_management/0001addposition_0
blob: ee90d923f2933fed72748063e88dd637cee7b529 (plain)
1
2
3
4
5
6
7
8
9
10
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
$NFT add rule t c accept	# should have handle 2
$NFT add rule t c accept	# should have handle 3
$NFT add rule t c position 2 drop