Skip to content

Commit dc9dfd8

Browse files
Florian Westphalkuba-moo
authored andcommitted
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: a8a388c ("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]>
1 parent 386f0cf commit dc9dfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/netfilter/packetdrill/conntrack_synack_reuse.pkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030

3131
1.5 < S 2000:2000(0) win 32792 <mss 1000,nop,wscale 0, TS val 233 ecr 0,nop,nop>
3232

33-
+0 `conntrack -L -p tcp --dport 8080 2>/dev/null | grep -q SYN_RECV`
33+
+0 `conntrack -f $NFCT_IP_VERSION -L -p tcp --dport 8080 2>/dev/null | grep -q SYN_RECV`
3434
+0 `iptables -v -S INPUT | grep INVALID | grep -q -- "-c 0 0"`

0 commit comments

Comments
 (0)