[PATCH net-next 7/8] selftests: traceroute: Test traceroute with different source IPs
David Ahern
dsahern at kernel.org
Tue Sep 2 02:39:36 UTC 2025
On 9/1/25 2:30 AM, Ido Schimmel wrote:
> When generating ICMP error messages, the kernel will prefer a source IP
> that is on the same subnet as the destination IP (see
> inet_select_addr()). Test this behavior by invoking traceroute with
> different source IPs and checking that the ICMP error message is
> generated with a source IP in the same subnet.
>
> Reviewed-by: Petr Machata <petrm at nvidia.com>
> Signed-off-by: Ido Schimmel <idosch at nvidia.com>
> ---
> tools/testing/selftests/net/traceroute.sh | 13 +++++++++----
> 1 file changed, 9 insertions(+), 4 deletions(-)
>
Reviewed-by: David Ahern <dsahern at kernel.org>
More information about the Linux-security-module-archive
mailing list