summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-06-15 17:08:40 +0000
committerpeter <peter@FreeBSD.org>1996-06-15 17:08:40 +0000
commit423ad17ec2f4dbbc6077e06a461c9ae1e858e0bd (patch)
treee8239706331219753bdeb1630fce2b57bde7f668 /usr.bin
parenta0d4b3885be68d6b71682db6d38c75f2420f905a (diff)
downloadFreeBSD-src-423ad17ec2f4dbbc6077e06a461c9ae1e858e0bd.zip
FreeBSD-src-423ad17ec2f4dbbc6077e06a461c9ae1e858e0bd.tar.gz
make netstat distinguish broadcast and blackhole routes where they appear.
(RTF_BLACKHOLE was already documented as being shown, but the code ignored it) Sumbitted by: Greg Lehey <grog@lemis.de>
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/netstat.11
-rw-r--r--usr.bin/netstat/route.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1
index 47fb49a..f9afb7a 100644
--- a/usr.bin/netstat/netstat.1
+++ b/usr.bin/netstat/netstat.1
@@ -231,6 +231,7 @@ The mapping between letters and flags is:
2 RTF_PROTO1 Protocol specific routing flag #2
3 RTF_PROTO3 Protocol specific routing flag #3
B RTF_BLACKHOLE Just discard pkts (during updates)
+b RTF_BROADCAST The route represents a broadcast address
C RTF_CLONING Generate new routes on use
c RTF_PRCLONING Protocol-specified generate new routes on use
D RTF_DYNAMIC Created dynamically (by redirect)
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 70a2d9e..85fe147 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -36,7 +36,7 @@
static char sccsid[] = "From: @(#)route.c 8.6 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
- "$Id: route.c,v 1.14 1996/06/08 00:20:42 julian Exp $";
+ "$Id: route.c,v 1.15 1996/06/10 21:03:38 julian Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -96,6 +96,8 @@ struct bits {
{ RTF_WASCLONED,'W' },
{ RTF_PRCLONING,'c' },
{ RTF_PROTO3, '3' },
+ { RTF_BLACKHOLE,'B' },
+ { RTF_BROADCAST,'b' },
{ 0 }
};
OpenPOWER on IntegriCloud