summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2022-06-28 15:17:24 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2022-06-28 15:17:24 +0000
commit234827f2c9c42bfb768d977deb79cf8846700461 (patch)
tree6effca3c35ca2d3ea82b0bd23a9cc5711eea6ce5 /usr.bin/netstat
parent7b75ea5e275bc5dd1fc6874a792d6b8c58ebff2b (diff)
Adapt netstat kvm code to ref count change in struct rtentry.
found by otto@ the hard way
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 0dbb248e331..a7c87d2e7a6 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.108 2021/12/05 22:36:19 deraadt Exp $ */
+/* $OpenBSD: route.c,v 1.109 2022/06/28 15:17:23 bluhm Exp $ */
/* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */
/*
@@ -297,7 +297,7 @@ 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("%5u %8lld ", rt->rt_refcnt - 1, rt->rt_use);
+ printf("%5u %8lld ", rt->rt_refcnt.r_refs - 1, rt->rt_use);
if (rt->rt_rmx.rmx_mtu)
printf("%5u ", rt->rt_rmx.rmx_mtu);
else