Skip to contentSkip to conversation

selftests: netfilter: fix packetdrill conntrack testcase

PATCH Applied Florian Westphal 2 participants 2 messages May 14, 2024

Subsystems (4)
lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 selftests: netfilter: fix packetdrill conntrack testcase

Some versions of conntrack(8) default to ipv4-only, so this needs to request ipv6 explicitly, like all other spots already do.

Fixes a8a388c2aae4 ("selftests: netfilter: add packetdrill based conntrack tests")

---
Can't target net because ATM Fixes-commit is only in net-next.

 .../net/netfilter/packetdrill/conntrack_synack_reuse.pkt        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/netfilter/packetdrill/conntrack_synack_reuse.pkt +1 -1
index 21e1bb6395e4..842242f8ccf7 100644
@@ -30,5 +30,5 @@
 
 1.5 < S 2000:2000(0) win 32792 <mss 1000,nop,wscale 0, TS val 233 ecr 0,nop,nop>
 
-+0 `conntrack -L -p tcp --dport 8080 2>/dev/null | grep -q SYN_RECV`
++0 `conntrack -f $NFCT_IP_VERSION -L -p tcp --dport 8080 2>/dev/null | grep -q SYN_RECV`
 +0 `iptables -v -S INPUT | grep INVALID | grep -q -- "-c 0 0"`
Signature · 1 line
2.43.2
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Tue, 14 May 2024 16:44:09 +0200 you wrote:

Some versions of conntrack(8) default to ipv4-only, so this needs to request ipv6 explicitly, like all other spots already do.

Fixes a8a388c2aae4 ("selftests: netfilter: add packetdrill based conntrack tests")

[...]

Here is the summary with links:
- [net-next] selftests: netfilter: fix packetdrill conntrack testcase

    https://git.kernel.org/netdev/net-next/c/dc9dfd8ae4b5

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html