From: David Ahern Date: Thu, 14 Jan 2021 03:09:44 +0000 (-0700) Subject: selftests: Make address validation apply only to client mode X-Git-Tag: v5.15~1802^2~342^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a8d584964fc808080a855b435507fe5094f2160;p=platform%2Fkernel%2Flinux-starfive.git selftests: Make address validation apply only to client mode When a single instance of nettest is used for client and server make sure address validation is only done for client mode. Signed-off-by: David Ahern Signed-off-by: Jakub Kicinski --- diff --git a/tools/testing/selftests/net/nettest.c b/tools/testing/selftests/net/nettest.c index 186262a..0e01a74 100644 --- a/tools/testing/selftests/net/nettest.c +++ b/tools/testing/selftests/net/nettest.c @@ -1720,6 +1720,12 @@ static int ipc_child(int fd, struct sock_args *args) server_mode = 1; /* to tell log_msg in case we are in both_mode */ + /* when running in both mode, address validation applies + * solely to client side + */ + args->has_expected_laddr = 0; + args->has_expected_raddr = 0; + rc = do_server(args, fd); out: