Skip to content

Commit 1742272

Browse files
ffmancerakuba-moo
authored andcommitted
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 <[email protected]> Reviewed-by: David Ahern <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 03cbcdf commit 1742272

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tools/testing/selftests/net/fcnal-test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2327,6 +2327,13 @@ ipv6_ping_novrf()
23272327
log_test_addr ${a} $? 2 "ping local, device bind"
23282328
done
23292329

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+
23302337
#
23312338
# ip rule blocks address
23322339
#

0 commit comments

Comments
 (0)