diff options
author | Henric Jungheim <henric@cvs.openbsd.org> | 2003-08-27 00:33:35 +0000 |
---|---|---|
committer | Henric Jungheim <henric@cvs.openbsd.org> | 2003-08-27 00:33:35 +0000 |
commit | 89d4983750d29c71ec08fa03c2ae3504ffd8bd8c (patch) | |
tree | 482daff716aefc3417233f23eae3d89ec4900f1c /usr.bin/netstat/route.c | |
parent | 1c0b90edde1c586ef0ce4bbdab5739637795fd93 (diff) |
RNF_IGNORE can corrupt the radix tree when an interface is down, it
makes routing lookups slightly more expensive, and serves no useful
purpose.
ok itojun@ tedu@
Diffstat (limited to 'usr.bin/netstat/route.c')
-rw-r--r-- | usr.bin/netstat/route.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index cecc34530eb..363f4033dda 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.55 2003/08/26 08:33:12 itojun Exp $ */ +/* $OpenBSD: route.c,v 1.56 2003/08/27 00:33:33 henric Exp $ */ /* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94"; #else -static char *rcsid = "$OpenBSD: route.c,v 1.55 2003/08/26 08:33:12 itojun Exp $"; +static char *rcsid = "$OpenBSD: route.c,v 1.56 2003/08/27 00:33:33 henric Exp $"; #endif #endif /* not lint */ @@ -325,9 +325,7 @@ p_rtflags(u_char flags) putchar('R'); if (flags & RNF_ACTIVE) putchar('A'); - if (flags & RNF_IGNORE) - putchar('I'); - if (flags & ~(RNF_NORMAL | RNF_ROOT | RNF_ACTIVE | RNF_IGNORE)) + if (flags & ~(RNF_NORMAL | RNF_ROOT | RNF_ACTIVE)) printf("/0x%02x", flags); putchar('>'); } |