Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: net: add ipv6 ping to local address from localhost

Test ipv6 pinging to local configured address and linklocal address from
localhost with -I ::1.

Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20260121194409.6749-2-fmancera@suse.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Fernando Fernandez Mancera and committed by
Jakub Kicinski
1742272b 03cbcdf9

+7
+7
tools/testing/selftests/net/fcnal-test.sh
··· 2327 2327 log_test_addr ${a} $? 2 "ping local, device bind" 2328 2328 done 2329 2329 2330 + for a in ${NSA_LO_IP6} ${NSA_LINKIP6}%${NSA_DEV} ${NSA_IP6} 2331 + do 2332 + log_start 2333 + run_cmd ${ping6} -c1 -w1 -I ::1 ${a} 2334 + log_test_addr ${a} $? 0 "ping local, from localhost" 2335 + done 2336 + 2330 2337 # 2331 2338 # ip rule blocks address 2332 2339 #