passt/test/passt
David Gibson 9a0e544f05 test: Improve test for NDP assigned prefix
In the NDP tests we search explicitly for a guest address with prefix
length 64.  AFAICT this is an attempt to specifically find the SLAAC
assigned address, rather than something assigned by other means.  We can do
that more explicitly by checking for .protocol == "kernel_ra". however.

The SLAAC prefixes we assigned *will* always be 64-bit, that's hard-coded
into our NDP implementation.  RFC4862 doesn't really allow anything else
since the interface identifiers for an Ethernet-like link are 64-bits.

Let's actually verify that, rather than just assuming it, by extracting the
prefix length assigned in the guest and checking it as well.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2024-11-07 12:47:37 +01:00
..
dhcp test: Wait for DAD on DHCPv6 addresses 2024-10-18 20:27:51 +02:00
ndp test: Improve test for NDP assigned prefix 2024-11-07 12:47:37 +01:00
shutdown passt: Relicense to GPL 2.0, or any later version 2023-04-06 18:00:33 +02:00
tcp passt: Relicense to GPL 2.0, or any later version 2023-04-06 18:00:33 +02:00
udp passt: Relicense to GPL 2.0, or any later version 2023-04-06 18:00:33 +02:00