Commit dc9c9193 authored by Alok Tiwari's avatar Alok Tiwari Committed by Jakub Kicinski
Browse files

selftests: fib_tests: fix link-local retrieval in fib6_nexthop()



fib6_nexthop() retrieves the link-local address for two interfaces used
in the test. However, both lldummy and llv1 are obtained from dummy0.

llv1 is expected to be retrieved from veth1, which is the interface used
later in the test. The subsequent check and error message also expect
the address to be retrieved from veth1.

Fix this by retrieving llv1 from veth1.

Signed-off-by: default avatarAlok Tiwari <alok.a.tiwari@oracle.com>
Link: https://patch.msgid.link/20260306180830.2329477-1-alok.a.tiwari@oracle.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 51aaf65b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -545,7 +545,7 @@ fib4_nexthop()
fib6_nexthop()
{
	local lldummy=$(get_linklocal dummy0)
	local llv1=$(get_linklocal dummy0)
	local llv1=$(get_linklocal veth1)

	if [ -z "$lldummy" ]; then
		echo "Failed to get linklocal address for dummy0"