diff options
author | peter <peter@FreeBSD.org> | 1996-08-21 05:59:19 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-08-21 05:59:19 +0000 |
commit | c5dd58135de3d7ca96243872875ecf6636539e57 (patch) | |
tree | 51a5bd964171414f0c87dff3610e33cf50e322ac /usr.sbin/traceroute | |
parent | 85129e1a54d3bd2f465113cb1583bb8ced7c51de (diff) | |
download | FreeBSD-src-c5dd58135de3d7ca96243872875ecf6636539e57.zip FreeBSD-src-c5dd58135de3d7ca96243872875ecf6636539e57.tar.gz |
Decode ICMP_UNREACH_FILTER_PROHIB responses as !F, from RFC1812.
Suggested by: Bill Fenner <fenner@parc.xerox.com>
Additionally, print unrecognised ICMP_UNREACH codes numerically. eg, code
15 would show up as !<15>.
Diffstat (limited to 'usr.sbin/traceroute')
-rw-r--r-- | usr.sbin/traceroute/traceroute.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c index 5e0ce7b..8849dbb 100644 --- a/usr.sbin/traceroute/traceroute.c +++ b/usr.sbin/traceroute/traceroute.c @@ -1,6 +1,6 @@ #ifndef lint static char *rcsid = - "@(#)$Header: /home/ncvs/src/usr.sbin/traceroute/traceroute.c,v 1.8 1996/08/17 10:37:28 peter Exp $ (LBL)"; + "@(#)$Header: /home/ncvs/src/usr.sbin/traceroute/traceroute.c,v 1.9 1996/08/21 04:31:28 peter Exp $ (LBL)"; #endif /* @@ -620,6 +620,15 @@ main(int argc, char **argv) ++unreachable; Printf(" !C"); break; + case ICMP_UNREACH_FILTER_PROHIB: + ++unreachable; + Printf(" !F"); + break; + default: /* unknown */ + Printf(" !<%d>", i - 1); + break; + case -2: /* normal reply */ + break; } break; } |