diff options
author | Guillaume Nault <gnault@redhat.com> | 2023-05-11 16:39:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-12 09:43:56 +0100 |
commit | ceec9f272432b03168376d6487e7e7817d215f07 (patch) | |
tree | 911c977a69ebbd16ebe2c7d253a8cb71cbc3c2cb /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a431327c4faacf978defa94dd0da1710d0c69801 (diff) |
selftests: fcnal: Test SO_DONTROUTE on raw and ping sockets.
Use ping -r to test the kernel behaviour with raw and ping sockets
having the SO_DONTROUTE option.
Since ipv4_ping_novrf() is called with different values of
net.ipv4.ping_group_range, then it tests both raw and ping sockets
(ping uses ping sockets if its user ID belongs to ping_group_range
and raw sockets otherwise).
With both socket types, 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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions