diff --git a/usr.sbin/traceroute6/traceroute6.8 b/usr.sbin/traceroute6/traceroute6.8 --- a/usr.sbin/traceroute6/traceroute6.8 +++ b/usr.sbin/traceroute6/traceroute6.8 @@ -191,6 +191,12 @@ Destination Unreachable - Address Unreachable. .It !H Parameter Problem - Unrecognized Next Header Type. +.It !R +Destination Unreachable - Route to Destination Network Rejected. +.It ! +Destination Unreachable - General unreachability. +.Em xx +is the hexadecimal ICMP6 error code. .It !\& This is printed if the hop limit is <= 1 on a port unreachable message. This means that the packet got to the destination, but that the reply had a hop diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c --- a/usr.sbin/traceroute6/traceroute6.c +++ b/usr.sbin/traceroute6/traceroute6.c @@ -1009,6 +1009,14 @@ printf(" !"); ++got_there; break; + case ICMP6_DST_UNREACH_REJECT: + ++unreachable; + printf(" !R"); + break; + default: + ++unreachable; + printf(" !<%d>", code & 0xff); + break; } } else if (type == ICMP6_PARAM_PROB && code == ICMP6_PARAMPROB_NEXTHEADER) {