From 423ad17ec2f4dbbc6077e06a461c9ae1e858e0bd Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 15 Jun 1996 17:08:40 +0000 Subject: 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 --- usr.bin/netstat/netstat.1 | 1 + usr.bin/netstat/route.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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 @@ -96,6 +96,8 @@ struct bits { { RTF_WASCLONED,'W' }, { RTF_PRCLONING,'c' }, { RTF_PROTO3, '3' }, + { RTF_BLACKHOLE,'B' }, + { RTF_BROADCAST,'b' }, { 0 } }; -- cgit v1.1