selftests: Add SO_DONTROUTE option to nettest.
authorGuillaume Nault <gnault@redhat.com>
Thu, 11 May 2023 14:39:25 +0000 (16:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 May 2023 08:43:56 +0000 (09:43 +0100)
commitaeefbb574c38025fd65a1b053c41595ba13b2408
tree95c32a38020b80507a5330042e6c6ef96c161a45
parentc1bc7d73c96425db12bb92fbf24c37fd1c9ac329
selftests: Add SO_DONTROUTE option to nettest.

Add --client-dontroute and --server-dontroute options to nettest. They
allow to set the SO_DONTROUTE option to the client and server sockets
respectively. This will be used by the following patches to test
the SO_DONTROUTE kernel behaviour with TCP and UDP.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/nettest.c