[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191103.172552.239436537129845506.davem@davemloft.net>
Date: Sun, 03 Nov 2019 17:25:52 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: fruggeri@...sta.com
Cc: kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: icmp: use input address in traceroute
From: fruggeri@...sta.com (Francesco Ruggeri)
Date: Thu, 31 Oct 2019 17:44:13 -0700
> Even with icmp_errors_use_inbound_ifaddr set, traceroute returns the
> primary address of the interface the packet was received on, even if
> the path goes through a secondary address. In the example:
>
> 1.0.3.1/24
> ---- 1.0.1.3/24 1.0.1.1/24 ---- 1.0.2.1/24 1.0.2.4/24 ----
> |H1|--------------------------|R1|--------------------------|H2|
> ---- N1 ---- N2 ----
>
> where 1.0.3.1/24 is R1's primary address on N1, traceroute from
> H1 to H2 returns:
>
> traceroute to 1.0.2.4 (1.0.2.4), 30 hops max, 60 byte packets
> 1 1.0.3.1 (1.0.3.1) 0.018 ms 0.006 ms 0.006 ms
> 2 1.0.2.4 (1.0.2.4) 0.021 ms 0.007 ms 0.007 ms
>
> After applying this patch, it returns:
>
> traceroute to 1.0.2.4 (1.0.2.4), 30 hops max, 60 byte packets
> 1 1.0.1.1 (1.0.1.1) 0.033 ms 0.007 ms 0.006 ms
> 2 1.0.2.4 (1.0.2.4) 0.011 ms 0.007 ms 0.007 ms
>
> Original-patch-by: Bill Fenner <fenner@...sta.com>
> Signed-off-by: Francesco Ruggeri <fruggeri@...sta.com>
Applied.
Powered by blists - more mailing lists