passt/test/pasta
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
tcp test: Clarify test for spliced inbound transfers 2024-10-18 20:28:00 +02:00
udp test: Clarify test for spliced inbound transfers 2024-10-18 20:28:00 +02:00