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>.
This commit is contained in:
parent
e86f5a4cd3
commit
3f22340731
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17737
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user