Skip to contentSkip to conversation

selftests/net: packetdrill: add ipv4-mapped-ipv6 tests

PATCH Applied Eric Dumazet 3 participants 3 messages Feb 17 – Feb 19

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/net: packetdrill: add ipv4-mapped-ipv6 tests

Add ipv4-mapped-ipv6 case to ksft_runner.sh before an upcoming TCP fix in this area.

---
 .../testing/selftests/net/packetdrill/ksft_runner.sh  | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
tools/testing/selftests/net/packetdrill/ksft_runner.sh +10 -1
index b34e5cf0112e38ede3edf8d36e266e39f999ca03..0a97d5ae34699a7c0638972e21243b71047a8554 100755
@@ -13,6 +13,15 @@ declare -A ip_args=(
 		-D TFO_COOKIE_ZERO=b7c12350a90dc8f5
 		-D CMSG_LEVEL_IP=SOL_IP
 		-D CMSG_TYPE_RECVERR=IP_RECVERR"
+	[ipv4-mapped-ipv6]="--ip_version=ipv4-mapped-ipv6
+		--local_ip=192.168.0.1
+		--gateway_ip=192.168.0.1
+		--netmask_ip=255.255.0.0
+		--remote_ip=192.0.2.1
+		-D TFO_COOKIE=3021b9d889017eeb
+		-D TFO_COOKIE_ZERO=b7c12350a90dc8f5
+		-D CMSG_LEVEL_IP=SOL_IPV6
+		-D CMSG_TYPE_RECVERR=IPV6_RECVERR"
 	[ipv6]="--ip_version=ipv6
 		--mtu=1520
 		--local_ip=fd3d:0a0b:17d6::1
@@ -45,7 +54,7 @@ fi
 
 ip_versions=$(grep -E '^--ip_version=' $script | cut -d '=' -f 2)
 if [[ -z $ip_versions ]]; then
-	ip_versions="ipv4 ipv6"
+	ip_versions="ipv4 ipv6 ipv4-mapped-ipv6"
 elif [[ ! "$ip_versions" =~ ^ipv[46]$ ]]; then
 	ktap_exit_fail_msg "Too many or unsupported --ip_version: $ip_versions"
 	exit "$KSFT_FAIL"
Signature · 1 line
2.53.0.310.g728cabbaf7-goog
#2 lore raw
In reply to Eric Dumazet
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 7 lines · On Tue, 17 Feb 2026 14:29:24 +0000 you wrote:

Add ipv4-mapped-ipv6 case to ksft_runner.sh before an upcoming TCP fix in this area.

---
 .../testing/selftests/net/packetdrill/ksft_runner.sh  | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Here is the summary with links:
- [net] selftests/net: packetdrill: add ipv4-mapped-ipv6 tests

    https://git.kernel.org/netdev/net/c/570e4549f632

You are awesome, thank you!

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