summaryrefslogtreecommitdiff
path: root/usr.sbin/traceroute/traceroute.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-19 15:23:27 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-19 15:23:27 +0000
commit9ba2a1d2ed4c6d99e1b0ab9a5cb2e19f9ea262b9 (patch)
tree38a7fa66131568cb6041c516c11535d674713435 /usr.sbin/traceroute/traceroute.c
parent1028f31a04fc348244b6396b6d9deb28ae323a97 (diff)
Recognize "{net,host} access prohibited" icmp reply.
Diffstat (limited to 'usr.sbin/traceroute/traceroute.c')
-rw-r--r--usr.sbin/traceroute/traceroute.c8
1 files changed, 8 insertions, 0 deletions
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;
}