summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/nd6.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-11-08 23:36:32 +0000
committersam <sam@FreeBSD.org>2003-11-08 23:36:32 +0000
commitc997776d7c832608d60560c380ff43549d2dbe3a (patch)
tree216d7a328008c2857f9b286342d5087eea1cc6a5 /sys/netinet6/nd6.c
parent1cd9ce158fbe3f8fd872eff74a1cfd939dea5515 (diff)
downloadFreeBSD-src-c997776d7c832608d60560c380ff43549d2dbe3a.zip
FreeBSD-src-c997776d7c832608d60560c380ff43549d2dbe3a.tar.gz
replace explicit changes to rt_refcnt by RT_ADDREF and RT_REMREF
macros that expand to include assertions when the system is built with INVARIANTS Supported by: FreeBSD Foundation
Diffstat (limited to 'sys/netinet6/nd6.c')
-rw-r--r--sys/netinet6/nd6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 192b4ea..cceb885 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -838,7 +838,7 @@ nd6_lookup(addr6, create, ifp)
return (NULL);
}
RT_LOCK_ASSERT(rt);
- rt->rt_refcnt--;
+ RT_REMREF(rt);
/*
* Validation for the entry.
* Note that the check for rt_llinfo is necessary because a cloned
@@ -1834,7 +1834,7 @@ nd6_output(ifp, origifp, m0, dst, rt0)
if ((rt->rt_flags & RTF_UP) == 0) {
rt0 = rt = rtalloc1((struct sockaddr *)dst, 1, 0UL);
if (rt != NULL) {
- rt->rt_refcnt--;
+ RT_REMREF(rt);
RT_UNLOCK(rt);
if (rt->rt_ifp != ifp) {
/* XXX: loop care? */
OpenPOWER on IntegriCloud