blob: e82995a5d902df8d40fd2a8f1bf5850c5d4f4fa7 (
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
# kernel should return ENOENT
$NFT replace rule t c handle 2 drop 2>/dev/null
echo "E: missing kernel ENOENT" >&2
|