mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
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. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20260217142924.1853498-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
ccd8e87748
commit
570e4549f6
1 changed files with 10 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue