mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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>
This commit is contained in:
parent
03cbcdf938
commit
1742272bd3
|
|
@ -2327,6 +2327,13 @@ ipv6_ping_novrf()
|
|||
log_test_addr ${a} $? 2 "ping local, device bind"
|
||||
done
|
||||
|
||||
for a in ${NSA_LO_IP6} ${NSA_LINKIP6}%${NSA_DEV} ${NSA_IP6}
|
||||
do
|
||||
log_start
|
||||
run_cmd ${ping6} -c1 -w1 -I ::1 ${a}
|
||||
log_test_addr ${a} $? 0 "ping local, from localhost"
|
||||
done
|
||||
|
||||
#
|
||||
# ip rule blocks address
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user