summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2002-08-12 02:40:53 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2002-08-12 02:40:53 +0000
commit72aa80f92c0b69a21250d9ae6ab8d7c3c0dd700e (patch)
tree48d5fb6bd030939738dc8e57c61c84e6161272a5
parentbab0f04b1ce3e3585e7d7fdcc5b95c2bed933f01 (diff)
!X for 3/13 (administratively prohibited); ok itojun@
-rw-r--r--usr.sbin/traceroute/traceroute.84
-rw-r--r--usr.sbin/traceroute/traceroute.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/traceroute/traceroute.8 b/usr.sbin/traceroute/traceroute.8
index 22466213dfa..e6b9b0e59c4 100644
--- a/usr.sbin/traceroute/traceroute.8
+++ b/usr.sbin/traceroute/traceroute.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: traceroute.8,v 1.27 2002/08/11 18:17:32 stevesk Exp $
+.\" $OpenBSD: traceroute.8,v 1.28 2002/08/12 02:40:52 stevesk Exp $
.\" $NetBSD: traceroute.8,v 1.6 1995/10/12 03:05:50 mycroft Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
@@ -372,6 +372,8 @@ Other possible annotations after the time are
.Sy !A ,
.Sy !C
(access to the network or host, respectively, is prohibited),
+.Sy !X
+(communication administratively prohibited by filtering),
.Sy !S
or
.Sy !F
diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c
index 278ccbb27d8..18f3515abea 100644
--- a/usr.sbin/traceroute/traceroute.c
+++ b/usr.sbin/traceroute/traceroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: traceroute.c,v 1.49 2002/08/12 02:36:25 stevesk Exp $ */
+/* $OpenBSD: traceroute.c,v 1.50 2002/08/12 02:40:52 stevesk Exp $ */
/* $NetBSD: traceroute.c,v 1.10 1995/05/21 15:50:45 mycroft Exp $ */
/*-
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)traceroute.c 8.1 (Berkeley) 6/6/93";*/
#else
-static char rcsid[] = "$OpenBSD: traceroute.c,v 1.49 2002/08/12 02:36:25 stevesk Exp $";
+static char rcsid[] = "$OpenBSD: traceroute.c,v 1.50 2002/08/12 02:40:52 stevesk Exp $";
#endif
#endif /* not lint */
@@ -631,6 +631,9 @@ main(int argc, char *argv[])
printf(" !S");
break;
case ICMP_UNREACH_FILTER_PROHIB:
+ ++unreachable;
+ printf(" !X");
+ break;
case ICMP_UNREACH_NET_PROHIB: /*misuse*/
++unreachable;
printf(" !A");