]> Git Repo - J-linux.git/commitdiff
selftests: netfilter: fix packetdrill conntrack testcase
authorFlorian Westphal <[email protected]>
Tue, 14 May 2024 14:44:09 +0000 (16:44 +0200)
committerJakub Kicinski <[email protected]>
Tue, 14 May 2024 17:50:31 +0000 (10:50 -0700)
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")
Reported-by: Jakub Kicinski <[email protected]>
Closes: https://lore.kernel.org/netdev/[email protected]/
Signed-off-by: Florian Westphal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
tools/testing/selftests/net/netfilter/packetdrill/conntrack_synack_reuse.pkt

index 21e1bb6395e4eb2ea60132fde40f8e01fa98d309..842242f8ccf72e1b63548b910effe894a7b530af 100644 (file)
@@ -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"`
This page took 0.055706 seconds and 4 git commands to generate.