summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/route.c4
-rw-r--r--usr.bin/netstat/show.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 971e25eaffc..f2b5583631d 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.85 2009/05/07 15:51:53 claudio Exp $ */
+/* $OpenBSD: route.c,v 1.86 2009/05/31 18:03:42 claudio Exp $ */
/* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */
/*
@@ -299,7 +299,7 @@ p_krtentry(struct rtentry *rt)
else
printf("%5s ", "-");
putchar((rt->rt_rmx.rmx_locks & RTV_MTU) ? 'L' : ' ');
- printf(" %2d", rt->rt_priority & RTP_MASK);
+ printf(" %2d", rt->rt_priority);
if (rt->rt_ifp) {
if (rt->rt_ifp != lastif) {
diff --git a/usr.bin/netstat/show.c b/usr.bin/netstat/show.c
index fb75b1aa76e..7bca6a1af13 100644
--- a/usr.bin/netstat/show.c
+++ b/usr.bin/netstat/show.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: show.c,v 1.23 2009/05/23 18:28:45 chris Exp $ */
+/* $OpenBSD: show.c,v 1.24 2009/05/31 18:03:42 claudio Exp $ */
/* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */
/*
@@ -310,7 +310,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 & RTP_MASK,
+ printf(" %2d %.16s", rtm->rtm_priority,
if_indextoname(rtm->rtm_index, ifbuf));
putchar('\n');
}