diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-09-15 20:13:11 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-09-15 20:13:11 +0000 |
commit | 125a227054ddee4cb23bf9b95f6b619ba7b217b1 (patch) | |
tree | 9a06079f1348596e9f7288247cebd61ee679cfab /usr.bin | |
parent | b780fb8a07dee7da5d7b96e9f07b132bc15467ae (diff) |
Similar to route(8) change mask rtm->rtm_priority with RTP_MASK to show
correct values. OK henning@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/route.c | 4 | ||||
-rw-r--r-- | usr.bin/netstat/show.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index a959283a460..eb344cd9b58 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.81 2008/06/13 21:44:32 claudio Exp $ */ +/* $OpenBSD: route.c,v 1.82 2008/09/15 20:13:10 claudio Exp $ */ /* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */ /* @@ -296,7 +296,7 @@ p_krtentry(struct rtentry *rt) else printf("%5s ", "-"); putchar((rt->rt_rmx.rmx_locks & RTV_MTU) ? 'L' : ' '); - printf(" %2d", rt->rt_priority); + printf(" %2d", rt->rt_priority & RTP_MASK); if (rt->rt_ifp) { if (rt->rt_ifp != lastif) { diff --git a/usr.bin/netstat/show.c b/usr.bin/netstat/show.c index 38381899625..7ab0927b866 100644 --- a/usr.bin/netstat/show.c +++ b/usr.bin/netstat/show.c @@ -1,4 +1,4 @@ -/* $OpenBSD: show.c,v 1.13 2008/05/08 07:19:42 claudio Exp $ */ +/* $OpenBSD: show.c,v 1.14 2008/09/15 20:13:10 claudio Exp $ */ /* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */ /* @@ -305,7 +305,7 @@ p_rtentry(struct rt_msghdr *rtm) else printf("%5s ", "-"); putchar((rtm->rtm_rmx.rmx_locks & RTV_MTU) ? 'L' : ' '); - printf(" %2d %.16s", rtm->rtm_priority, + printf(" %2d %.16s", rtm->rtm_priority & RTP_MASK, if_indextoname(rtm->rtm_index, ifbuf)); putchar('\n'); } |