summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/nettest.c
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2021-01-13 20:09:44 -0700
committerJakub Kicinski <kuba@kernel.org>2021-01-14 16:26:49 -0800
commit9a8d584964fc808080a855b435507fe5094f2160 (patch)
treef07390b7a12447fb7f66d86621bb3dcbec5c6a04 /tools/testing/selftests/net/nettest.c
parentdb9993359e58761e04d0dbee098dbf74d6a1dda8 (diff)
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 <dsahern@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/nettest.c')
-rw-r--r--tools/testing/selftests/net/nettest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/nettest.c b/tools/testing/selftests/net/nettest.c
index 186262a702bf..0e01a7447521 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: