From 6badca1713e0e9ae990b6e3b1b9b4c77a79e29cf Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 1 Jun 2016 12:06:50 +0000 Subject: Remove ART-specific hack now that route reference counts is similar to the original BSD routing table. All route(8) and arp(8) tests still pass. Fix a harmless underflow reported by Hrvoje Popovski. --- sys/net/rtsock.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 11ef5246a4c..35a819b18a2 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.188 2016/03/30 10:13:14 mpi Exp $ */ +/* $OpenBSD: rtsock.c,v 1.189 2016/06/01 12:06:49 mpi Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -1290,9 +1290,6 @@ sysctl_dumpentry(struct rtentry *rt, void *v, unsigned int id) rt_getmetrics(&rt->rt_rmx, &rtm->rtm_rmx); /* Do not account the routing table's reference. */ rtm->rtm_rmx.rmx_refcnt = rt->rt_refcnt - 1; -#ifdef ART - rtm->rtm_rmx.rmx_refcnt--; -#endif rtm->rtm_index = rt->rt_ifidx; rtm->rtm_addrs = info.rti_addrs; rtm->rtm_tableid = id; -- cgit v1.2.3