traviscross / mtr

Official repository for mtr, a network diagnostic tool
http://www.bitwizard.nl/mtr/
GNU General Public License v2.0
2.68k stars 340 forks source link

show actual ICMP error code #404

Open jkldgoefgkljefogeg opened 3 years ago

jkldgoefgkljefogeg commented 3 years ago

ICMPv6 type 1 code 3 (Destination Unreachable - address unreachable) is not the same as type 1 code 0 (no route to destination) , but both are shown in mtr output as "no route to host" which is confusing.

address unreachable can be encapsulation failure or disallowed hairpinning, which is different from routing lookup miss. It is probably good to show ICMP error as is, instead of bucketing them into a broad category

https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml#icmpv6-parameters-codes-2 https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml#icmp-parameters-codes-3