Skip to contentSkip to conversation

tests: fix inet nat prio tests

PATCH New Florian Westphal 1 participant 1 message Aug 2, 2023 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 tests: fix inet nat prio tests

Its legal to DNAT in output and SNAT in input chain, so don't test for that being illegal.

Fixes 8beafab74c39 ("rule: allow src/dstnat prios in input and output")
Fixes 34ce4e4a7bb6 ("test: shell: Test cases for standard chain prios")
---
 tests/shell/testcases/chains/0023prio_inet_srcnat_1 | 2 +-
 tests/shell/testcases/chains/0024prio_inet_dstnat_1 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tests/shell/testcases/chains/0023prio_inet_srcnat_1 +1 -1
index d2b1fa431ee6..e4a668e1899b 100755
@@ -2,7 +2,7 @@
 
 for family in ip ip6 inet
 do
-	for hook in prerouting input forward output
+	for hook in prerouting forward output
 	do
 		$NFT add table $family x
 		$NFT add chain $family x y "{ type filter hook $hook priority srcnat; }" &> /dev/null
tests/shell/testcases/chains/0024prio_inet_dstnat_1 +1 -1
index d112f2c958c0..f1b802a05b0f 100755
@@ -2,7 +2,7 @@
 
 for family in ip ip6 inet
 do
-	for hook in input forward output postrouting
+	for hook in input forward postrouting
 	do
 		$NFT add table $family x
 		$NFT add chain $family x y "{ type filter hook $hook priority dstnat; }" &> /dev/null
Signature · 1 line
2.41.0