summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-05-04 22:50:19 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-05-04 22:50:19 +0000
commit72845f3045265105d2d545f6afa78ff6c8ce5f3c (patch)
treee6499af205a35f2e1a7db4001e054e2b6b2ed5c7 /usr.bin
parent710c64d18789eb25fed232f87c40158bfcba7ad3 (diff)
The tcp specific routing metrics are almost never used so reduce the routing
table from these metrics. struct rt_msghdr used by the routing socket is not affected and so most userland apps don't need to be changed. some man page polishing by jmc@ OK henning@ markus@ theo@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/route.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 1d747f746b4..560b4e05fe6 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.62 2004/03/13 22:02:13 deraadt Exp $ */
+/* $OpenBSD: route.c,v 1.63 2004/05/04 22:50:18 claudio 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.62 2004/03/13 22:02:13 deraadt Exp $";
+static char *rcsid = "$OpenBSD: route.c,v 1.63 2004/05/04 22:50:18 claudio Exp $";
#endif
#endif /* not lint */
@@ -645,24 +645,10 @@ p_rtentry(struct rtentry *rt)
rt->rt_nodes[0].rn_dupedkey ? " =>" : "");
}
putchar('\n');
- if (vflag) {
- printf("\texpire %10lu%c recvpipe %10ld%c "
- "sendpipe %10ld%c\n",
+ if (vflag)
+ printf("\texpire %10lu%c\n",
rt->rt_rmx.rmx_expire,
- (rt->rt_rmx.rmx_locks & RTV_EXPIRE) ? 'L' : ' ',
- rt->rt_rmx.rmx_recvpipe,
- (rt->rt_rmx.rmx_locks & RTV_RPIPE) ? 'L' : ' ',
- rt->rt_rmx.rmx_sendpipe,
- (rt->rt_rmx.rmx_locks & RTV_SPIPE) ? 'L' : ' ');
- printf("\tssthresh %10lu%c rtt %10ld%c "
- "rttvar %10ld%c\n",
- rt->rt_rmx.rmx_ssthresh,
- (rt->rt_rmx.rmx_locks & RTV_SSTHRESH) ? 'L' : ' ',
- rt->rt_rmx.rmx_rtt,
- (rt->rt_rmx.rmx_locks & RTV_RTT) ? 'L' : ' ',
- rt->rt_rmx.rmx_rttvar,
- (rt->rt_rmx.rmx_locks & RTV_RTTVAR) ? 'L' : ' ');
- }
+ (rt->rt_rmx.rmx_locks & RTV_EXPIRE) ? 'L' : ' ');
}
char *