From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202510 header.b=MslGV83l; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 336C95A0271 for ; Wed, 26 Nov 2025 04:52:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202510; t=1764129140; bh=9gXnG9bnXiCvhwodSeOy6aTSuv1qf/Q+d7jN6l5sCXc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MslGV83l0Z9aZ6ESL6Au+/dPTD9THC7bwLWkD4cbkGStOA0y8XwD8KoDbu0TUTjtD yl0W5k+EDkbljs0F3HAZMfM2/1cF+Y8E7GnzB1bKaPj4VBG6t4y7jEED772S2IDcjS /612j0rCx1UFReHHM57w9u1i8/3kkcsa/XbYmd7IEPc0qY2ipMXl/rp8cC+CduiM8y K9GtOMIjkkP+Lnbk88YQ4ncjWreF0JZwQ7sDp+x/kwVru0R+afSfg9wpC41RB8+GJT 6cJtX8boDGO+Ej6Td1YuLvlVoZjMu4Vk43c2n2w/2UwrNmv6pCyiNfGMV7dVSYbiFi fVWUQg5tnjpgw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4dGQcN2gkmz4wDT; Wed, 26 Nov 2025 14:52:20 +1100 (AEDT) Date: Wed, 26 Nov 2025 14:52:18 +1100 From: David Gibson To: Yumei Huang Subject: Re: [PATCH] test: Fix IPv6 address/prefix mismatch error Message-ID: References: <20251126032147.27242-1-yuhuang@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Oxafs6eYHhIV2KnJ" Content-Disposition: inline In-Reply-To: <20251126032147.27242-1-yuhuang@redhat.com> Message-ID-Hash: 7BEB2SOUZYOAY7UHF2VOZK7WXBZUHMH2 X-Message-ID-Hash: 7BEB2SOUZYOAY7UHF2VOZK7WXBZUHMH2 X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top, sbrivio@redhat.com X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --Oxafs6eYHhIV2KnJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 26, 2025 at 11:21:47AM +0800, Yumei Huang wrote: > For IPv6 addresses within the same scope group, Linux kernel preserves > insertion order, where the first inserted address appears last. As a > result, the ordering inside pasta differs from the host, causing a few > tests to fail when they compare only the first address on each side. > Fix this by checking that the guest=E2=80=99s first address matches any o= f the > host=E2=80=99s addresses. >=20 > Link: https://bugs.passt.top/show_bug.cgi?id=3D175 > Signed-off-by: Yumei Huang Reviewed-by: David Gibson > --- > test/migrate/basic | 4 ++-- > test/migrate/basic_fin | 4 ++-- > test/migrate/iperf3_bidir6 | 4 ++-- > test/migrate/iperf3_in6 | 4 ++-- > test/migrate/iperf3_many_out6 | 4 ++-- > test/migrate/iperf3_out6 | 4 ++-- > test/migrate/rampstream_in | 4 ++-- > test/migrate/rampstream_out | 4 ++-- > test/passt/dhcp | 4 ++-- > test/passt/ndp | 6 +++--- > test/passt_in_ns/dhcp | 4 ++-- > test/pasta/dhcp | 4 ++-- > test/pasta/ndp | 6 +++--- > test/two_guests/basic | 6 +++--- > 14 files changed, 31 insertions(+), 31 deletions(-) >=20 > diff --git a/test/migrate/basic b/test/migrate/basic > index c22fee8..bab2d76 100644 > --- a/test/migrate/basic > +++ b/test/migrate/basic > @@ -39,8 +39,8 @@ guest1 /sbin/dhclient -6 __IFNAME1__ > # Wait for DAD to complete on the DHCP address > guest1 while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sl= eep 0.1; done > g1out ADDR1_6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "_= _IFNAME1__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR1_6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR1_6__" > =20 > test TCP/IPv4: guest1/guest2 > host > g1out GW1 ip -j -4 route show|jq -rM '.[] | select(.dst =3D=3D "default"= ).gateway' > diff --git a/test/migrate/basic_fin b/test/migrate/basic_fin > index c35c269..1d92c92 100644 > --- a/test/migrate/basic_fin > +++ b/test/migrate/basic_fin > @@ -39,8 +39,8 @@ guest1 /sbin/dhclient -6 __IFNAME1__ > # Wait for DAD to complete on the DHCP address > guest1 while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sl= eep 0.1; done > g1out ADDR1_6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "_= _IFNAME1__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR1_6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR1_6__" > =20 > test TCP/IPv4: guest1, half-close, guest2 > host > g1out GW1 ip -j -4 route show|jq -rM '.[] | select(.dst =3D=3D "default"= ).gateway' > diff --git a/test/migrate/iperf3_bidir6 b/test/migrate/iperf3_bidir6 > index 60b2a9b..e95eee8 100644 > --- a/test/migrate/iperf3_bidir6 > +++ b/test/migrate/iperf3_bidir6 > @@ -44,8 +44,8 @@ guest1 /sbin/dhclient -6 __IFNAME1__ > # Wait for DAD to complete on the DHCP address > guest1 while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sl= eep 0.1; done > g1out ADDR1_6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "_= _IFNAME1__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR1_6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR1_6__" > =20 > test TCP/IPv6 host <-> guest flood, many flows, during migration > =20 > diff --git a/test/migrate/iperf3_in6 b/test/migrate/iperf3_in6 > index 9b7f2c6..0e863a4 100644 > --- a/test/migrate/iperf3_in6 > +++ b/test/migrate/iperf3_in6 > @@ -44,8 +44,8 @@ guest1 /sbin/dhclient -6 __IFNAME1__ > # Wait for DAD to complete on the DHCP address > guest1 while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sl= eep 0.1; done > g1out ADDR1_6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "_= _IFNAME1__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR1_6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR1_6__" > =20 > test TCP/IPv6 host to guest throughput during migration > =20 > diff --git a/test/migrate/iperf3_many_out6 b/test/migrate/iperf3_many_out6 > index 9b3095f..179e269 100644 > --- a/test/migrate/iperf3_many_out6 > +++ b/test/migrate/iperf3_many_out6 > @@ -44,8 +44,8 @@ guest1 /sbin/dhclient -6 __IFNAME1__ > # Wait for DAD to complete on the DHCP address > guest1 while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sl= eep 0.1; done > g1out ADDR1_6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "_= _IFNAME1__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR1_6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR1_6__" > =20 > test TCP/IPv6 guest to host flood, many flows, during migration > =20 > diff --git a/test/migrate/iperf3_out6 b/test/migrate/iperf3_out6 > index b94a70c..20e6e95 100644 > --- a/test/migrate/iperf3_out6 > +++ b/test/migrate/iperf3_out6 > @@ -44,8 +44,8 @@ guest1 /sbin/dhclient -6 __IFNAME1__ > # Wait for DAD to complete on the DHCP address > guest1 while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sl= eep 0.1; done > g1out ADDR1_6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "_= _IFNAME1__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR1_6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR1_6__" > =20 > test TCP/IPv6 guest to host throughput during migration > =20 > diff --git a/test/migrate/rampstream_in b/test/migrate/rampstream_in > index 3c7fd20..5212dfc 100644 > --- a/test/migrate/rampstream_in > +++ b/test/migrate/rampstream_in > @@ -40,8 +40,8 @@ guest1 /sbin/dhclient -6 __IFNAME1__ > # Wait for DAD to complete on the DHCP address > guest1 while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sl= eep 0.1; done > g1out ADDR1_6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "_= _IFNAME1__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR1_6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR1_6__" > =20 > test TCP/IPv4: sequence check, ramps, inbound > g1out GW1 ip -j -4 route show|jq -rM '.[] | select(.dst =3D=3D "default"= ).gateway' > diff --git a/test/migrate/rampstream_out b/test/migrate/rampstream_out > index 8cff6d9..897396d 100644 > --- a/test/migrate/rampstream_out > +++ b/test/migrate/rampstream_out > @@ -40,8 +40,8 @@ guest1 /sbin/dhclient -6 __IFNAME1__ > # Wait for DAD to complete on the DHCP address > guest1 while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sl= eep 0.1; done > g1out ADDR1_6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "_= _IFNAME1__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR1_6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR1_6__" > =20 > test TCP/IPv4: sequence check, ramps, outbound > g1out GW1 ip -j -4 route show|jq -rM '.[] | select(.dst =3D=3D "default"= ).gateway' > diff --git a/test/passt/dhcp b/test/passt/dhcp > index dc6b880..904faab 100644 > --- a/test/passt/dhcp > +++ b/test/passt/dhcp > @@ -61,8 +61,8 @@ guest /sbin/dhclient -6 __IFNAME__ > # Wait for DAD to complete > guest while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sle= ep 0.1; done > gout ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "__IF= NAME__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR6__" > =20 > test DHCPv6: route > gout GW6 ip -j -6 route show|jq -rM '.[] | select(.dst =3D=3D "default")= =2Egateway' > diff --git a/test/passt/ndp b/test/passt/ndp > index df77cdc..80b72bb 100644 > --- a/test/passt/ndp > +++ b/test/passt/ndp > @@ -25,9 +25,9 @@ check [ -n "__IFNAME__" ] > test SLAAC: prefix > gout ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "__IF= NAME__").addr_info[] | select(.protocol =3D=3D "kernel_ra") | .local + "/" = + (.prefixlen | tostring)] | .[0]' > gout PREFIX6 sipcalc __ADDR6__ | grep prefix | cut -d' ' -f4 > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -hout HOST_PREFIX6 sipcalc __HOST_ADDR6__/64 | grep prefix | cut -d' ' -f4 > -check [ "__PREFIX6__" =3D "__HOST_PREFIX6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join("/64 ")' > +hout HOST_PREFIX6 sipcalc __HOST_ADDR6__/64 | grep prefix | cut -d' ' -f= 4 | tr '\n' ' ' > +check echo "__HOST_PREFIX6__" | grep -wq "__PREFIX6__" > =20 > test SLAAC: route > gout GW6 ip -j -6 route show|jq -rM '.[] | select(.dst =3D=3D "default")= =2Egateway' > diff --git a/test/passt_in_ns/dhcp b/test/passt_in_ns/dhcp > index 0ccb480..9d89049 100644 > --- a/test/passt_in_ns/dhcp > +++ b/test/passt_in_ns/dhcp > @@ -55,8 +55,8 @@ guest /sbin/dhclient -6 __IFNAME__ > # Wait for DAD to complete > guest while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sle= ep 0.1; done > gout ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "__IF= NAME__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(",")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR6__" > =20 > test DHCPv6: route > gout GW6 ip -j -6 route show|jq -rM '.[] | select(.dst =3D=3D "default")= =2Egateway' > diff --git a/test/pasta/dhcp b/test/pasta/dhcp > index e1c66be..366935f 100644 > --- a/test/pasta/dhcp > +++ b/test/pasta/dhcp > @@ -39,8 +39,8 @@ ns /sbin/dhclient -6 --no-pid __IFNAME__ > ns while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sleep = 0.1; done > hout HOST_IFNAME6 ip -j -6 route show|jq -rM '[.[] | select(.dst =3D=3D = "default").dev] | .[0]' > nsout ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "__I= FNAME__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ __ADDR6__ =3D __HOST_ADDR6__ ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR6__" > =20 > test DHCPv6: route > nsout GW6 ip -j -6 route show|jq -rM '.[] | select(.dst =3D=3D "default"= ).gateway' > diff --git a/test/pasta/ndp b/test/pasta/ndp > index e482876..1d385c7 100644 > --- a/test/pasta/ndp > +++ b/test/pasta/ndp > @@ -24,9 +24,9 @@ ns while ! ip -j -6 addr show dev __IFNAME__ | jq -e '.= [].addr_info.[] | select( > test SLAAC: prefix > nsout ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "__I= FNAME__").addr_info[] | select(.protocol =3D=3D "kernel_ra") | .local + "/"= + (.prefixlen | tostring)] | .[0]' > nsout PREFIX6 sipcalc __ADDR6__ | grep prefix | cut -d' ' -f4 > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM ['.[] | select(.ifname =3D=3D = "__IFNAME__").addr_info[] | select(.scope !=3D "host" and .scope !=3D "link= " and .deprecated !=3D true).local] | .[0]' > -hout HOST_PREFIX6 sipcalc __HOST_ADDR6__/64 | grep prefix | cut -d' ' -f4 > -check [ "__PREFIX6__" =3D "__HOST_PREFIX6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM ['.[] | select(.ifname =3D=3D = "__IFNAME__").addr_info[] | select(.scope !=3D "host" and .scope !=3D "link= " and .deprecated !=3D true).local]| join("/64 ")' > +hout HOST_PREFIX6 sipcalc __HOST_ADDR6__/64 | grep prefix | cut -d' ' -f= 4 | tr '\n' ' ' > +check echo "__HOST_PREFIX6__" | grep -wq "__PREFIX6__" > =20 > test SLAAC: route > nsout GW6 ip -j -6 route show|jq -rM '.[] | select(.dst =3D=3D "default"= ).gateway' > diff --git a/test/two_guests/basic b/test/two_guests/basic > index a9625f3..cb48bce 100644 > --- a/test/two_guests/basic > +++ b/test/two_guests/basic > @@ -45,9 +45,9 @@ guest1 while ip -j -6 addr show tentative | jq -e '.[].= addr_info'; do sleep 0.1; > guest2 while ip -j -6 addr show tentative | jq -e '.[].addr_info'; do sl= eep 0.1; done > g1out ADDR1_6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "_= _IFNAME1__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > g2out ADDR2_6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "_= _IFNAME2__").addr_info[] | select(.prefixlen =3D=3D 128).local] | .[0]' > -hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | .[0]' > -check [ "__ADDR1_6__" =3D "__HOST_ADDR6__" ] > -check [ "__ADDR2_6__" =3D "__HOST_ADDR6__" ] > +hout HOST_ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D = "__HOST_IFNAME6__").addr_info[] | select(.scope !=3D "host" and .scope !=3D= "link" and .deprecated !=3D true).local] | join(" ")' > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR1_6__" > +check echo "__HOST_ADDR6__" | grep -wq "__ADDR2_6__" > =20 > test TCP/IPv4: guest 1 > guest 2 > g1out GW1 ip -j -4 route show|jq -rM '.[] | select(.dst =3D=3D "default"= ).gateway' > --=20 > 2.51.1 >=20 --=20 David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson --Oxafs6eYHhIV2KnJ Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmkmeXEACgkQzQJF27ox 2GeG/RAAiSbS2OOtmykUp43hT4OU+zapVoxywB4/CqQUy/mIS3VVnzk//prAaeOn 65vkn8QDvkccboibHD2j3MwPbEf972xcq3w/oCX00Q769OHRqoHvwt5xU8ZHXUiv abca58KicWAPbrOPE0hoQfa2JXms6NI6IXPrA24o+tsMqQjub8w3fHqQuyKKbo0r XfEGeQZj2sBScB6fHoZB7K23OYR+Dv2J5duTPRA14tUPemoq+3eb1y0NJ2btlffC 7T5hG/8rvHbvY+6XqJshzT/FQoiiiqDMaTvFpZvsacAEckuRq9DATLJj2P/gy0VL CWO61y7e/QwmyhSjv4Mc4OA/1wPygYESAWn07YwVQ8F13NPKq5HNUTzPayWbmUp9 2fH9xMP5d6WXOA7GeHon3El24awT4Cz/TqAfVskEd3Uw2e1gP2KPL94J6fKBtl3A vENPHUPNRpA/8iiYXlWnYdBZppLONvK4Z1oOHOcVOsqJKglHqzUL2lxUyjH1ARd0 UOgvu9ncNtlKyN38mmLTsSmk4+7A38gHbKkR+dj+FtrA8gGDESiAQ2EW+ZPGd9DC uUmyeHw2DLn+v1qqjQ+eOw5MWBVF110HF5WcU8NJVolfayoGOrVSSQ9A7jfgyX5g VTsYdS43jbv4/nvcp/vL3MVnKUvEQTWjmD/EBrf3I7tWlaVWDag= =RSmi -----END PGP SIGNATURE----- --Oxafs6eYHhIV2KnJ--