diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-19 15:23:27 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-19 15:23:27 +0000 |
commit | 9ba2a1d2ed4c6d99e1b0ab9a5cb2e19f9ea262b9 (patch) | |
tree | 38a7fa66131568cb6041c516c11535d674713435 /usr.sbin/traceroute | |
parent | 1028f31a04fc348244b6396b6d9deb28ae323a97 (diff) |
Recognize "{net,host} access prohibited" icmp reply.
Diffstat (limited to 'usr.sbin/traceroute')
-rw-r--r-- | usr.sbin/traceroute/traceroute.8 | 3 | ||||
-rw-r--r-- | usr.sbin/traceroute/traceroute.c | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/usr.sbin/traceroute/traceroute.8 b/usr.sbin/traceroute/traceroute.8 index 8dca3c07539..85b16fc0acc 100644 --- a/usr.sbin/traceroute/traceroute.8 +++ b/usr.sbin/traceroute/traceroute.8 @@ -321,6 +321,9 @@ Other possible annotations after the time are .Sy !N , .Sy !P (got a host, network or protocol unreachable, respectively), +.Sy !A , +.Sy !C +(access to the network or host, respectively, is prohibited), .Sy !S or .Sy !F diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c index 11062e5a8be..1d1d0be4268 100644 --- a/usr.sbin/traceroute/traceroute.c +++ b/usr.sbin/traceroute/traceroute.c @@ -528,6 +528,14 @@ main(argc, argv) ++unreachable; Printf(" !S"); break; + case ICMP_UNREACH_NET_PROHIB: + ++unreachable; + Printf(" !A"); + break; + case ICMP_UNREACH_HOST_PROHIB: + ++unreachable; + Printf(" !C"); + break; } break; } |