diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-06-01 12:06:50 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-06-01 12:06:50 +0000 |
commit | 6badca1713e0e9ae990b6e3b1b9b4c77a79e29cf (patch) | |
tree | 9d7b97e9764746735822b36ccda6154597d00fa6 /sys | |
parent | 246331793941c8e3261daa9f881dcbc67177daf4 (diff) |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/rtsock.c | 5 |
1 files changed, 1 insertions, 4 deletions
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; |