summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-06-13 05:57:51 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-06-13 05:57:51 +0000
commitff9894a7aa88ac1f7cdb9c9b699947f7a3d20dec (patch)
tree5bd383d4265fb2b7caea8a933dd50ddf29b59cd3
parentbb5d09f16bd09457f2d49b119e221eb2df177bcb (diff)
Let the kvm output of netstat grok rt priorities like the "normal" show code.
-rw-r--r--usr.bin/netstat/route.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 686fc33c302..192d1188ed5 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.78 2007/12/19 08:49:23 claudio Exp $ */
+/* $OpenBSD: route.c,v 1.79 2008/06/13 05:57:50 claudio Exp $ */
/* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */
/*
@@ -285,12 +285,13 @@ p_krtentry(struct rtentry *rt)
p_addr(sa, mask, rt->rt_flags);
p_gwaddr(kgetsa(rt->rt_gateway), sa->sa_family);
p_flags(rt->rt_flags, "%-6.6s ");
- printf("%6d %8ld ", rt->rt_refcnt, rt->rt_use);
+ printf("%5u %8ld ", rt->rt_refcnt, rt->rt_use);
if (rt->rt_rmx.rmx_mtu)
- printf("%6u ", rt->rt_rmx.rmx_mtu);
+ printf("%5u ", rt->rt_rmx.rmx_mtu);
else
- printf("%6s ", "-");
+ printf("%5s ", "-");
putchar((rt->rt_rmx.rmx_locks & RTV_MTU) ? 'L' : ' ');
+ printf(" %2d", rt->rt_priority);
if (rt->rt_ifp) {
if (rt->rt_ifp != lastif) {