On 1/21/26 12:44 PM, Fernando Fernandez Mancera wrote: > Test ipv6 pinging to local configured address and linklocal address from > localhost with -I ::1. > > Signed-off-by: Fernando Fernandez Mancera <[email protected]> > --- > v2: shellcheck fixes, added VRF based tests and simplified linklocal > address parsing > v3: extend existing test in fcnal-test.sh instead of creating a new one, > notice some shellcheck warnings but I prefer to follow the style of the > existing code. It can be fixed if it is a requirement. > --- > tools/testing/selftests/net/fcnal-test.sh | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/tools/testing/selftests/net/fcnal-test.sh > b/tools/testing/selftests/net/fcnal-test.sh > index 844a580ae74e..890c3f8e51bb 100755 > --- a/tools/testing/selftests/net/fcnal-test.sh > +++ b/tools/testing/selftests/net/fcnal-test.sh > @@ -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 > #
Reviewed-by: David Ahern <[email protected]>
