Re: [PATCH net-next] net: icmp6: provide input address for traceroute6
From: David Miller <davem@davemloft.net>
Date: 2019-11-04 01:27:47
From: David Miller <davem@davemloft.net>
Date: 2019-11-04 01:27:47
From: fruggeri@arista.com (Francesco Ruggeri) Date: Wed, 30 Oct 2019 17:40:02 -0700
traceroute6 output can be confusing, in that it shows the address
that a router would use to reach the sender, rather than the address
the packet used to reach the router.
Consider this case:
------------------------ N2
| |
------ ------ N3 ----
| R1 | | R2 |------|H2|
------ ------ ----
| |
------------------------ N1
|
----
|H1|
----
where H1's default route is through R1, and R1's default route is
through R2 over N2.
traceroute6 from H1 to H2 shows R2's address on N1 rather than on N2.
The script below can be used to reproduce this scenario....
Signed-off-by: Francesco Ruggeri <redacted> Original-patch-by: Honggang Xu [off-list ref]
Applied.