Thread (19 messages) 19 messages, 4 authors, 2025-09-04

Re: [PATCH net-next 7/8] selftests: traceroute: Test traceroute with different source IPs

From: David Ahern <dsahern@kernel.org>
Date: 2025-09-02 02:39:37
Also in: linux-security-module

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@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
---
 tools/testing/selftests/net/traceroute.sh | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
Reviewed-by: David Ahern <dsahern@kernel.org>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help