diff options
author | 2008-09-15 20:13:10 +0000 | |
---|---|---|
committer | 2008-09-15 20:13:10 +0000 | |
commit | 31ff172ac23b0b643e1617d01ffe24f45faa94a9 (patch) | |
tree | 1b5775187edf39091950ee324b4afecc3e163c9f /usr.bin/netstat/route.c | |
parent | Mask rtm->rtm_priority with RTP_MASK before printing so that the priority is (diff) | |
download | wireguard-openbsd-31ff172ac23b0b643e1617d01ffe24f45faa94a9.tar.xz wireguard-openbsd-31ff172ac23b0b643e1617d01ffe24f45faa94a9.zip |
Similar to route(8) change mask rtm->rtm_priority with RTP_MASK to show
correct values. OK henning@
Diffstat (limited to 'usr.bin/netstat/route.c')
-rw-r--r-- | usr.bin/netstat/route.c | 4 |
1 files changed, 2 insertions, 2 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) { |