summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/rule_management/0010replace_0
blob: cd69a89d986109c17bbdc353d9b49d25cc118608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# test for kernel commit ca08987885a147643817d02bf260bc4756ce8cd4
# ("netfilter: nf_tables: deactivate expressions in rule replecement routine")

set -e
$NFT add table t
$NFT add chain t c1
$NFT add chain t c2
$NFT add rule ip t c1 jump c2
$NFT replace rule ip t c1 handle 3 accept
$NFT flush ruleset