selftests: fcnal: Test SO_DONTROUTE on UDP sockets.
authorGuillaume Nault <gnault@redhat.com>
Thu, 11 May 2023 14:39:39 +0000 (16:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 May 2023 08:43:56 +0000 (09:43 +0100)
commita431327c4faacf978defa94dd0da1710d0c69801
treee8490ca985559f32bbf71f06c2e2c1014024b5a3
parentdd017c72dde677cef5a5a965ca71ac4736b53452
selftests: fcnal: Test SO_DONTROUTE on UDP sockets.

Use nettest --client-dontroute to test the kernel behaviour with UDP
sockets having the SO_DONTROUTE option. Sending packets to a neighbour
(on link) host, should work. When the host is behind a router, sending
should fail.

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/fcnal-test.sh