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
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>