diff options
author | sam <sam@FreeBSD.org> | 2003-11-08 23:36:32 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-11-08 23:36:32 +0000 |
commit | c997776d7c832608d60560c380ff43549d2dbe3a (patch) | |
tree | 216d7a328008c2857f9b286342d5087eea1cc6a5 /sys/netinet6/nd6_rtr.c | |
parent | 1cd9ce158fbe3f8fd872eff74a1cfd939dea5515 (diff) | |
download | FreeBSD-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_rtr.c')
-rw-r--r-- | sys/netinet6/nd6_rtr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index 858b5da..ef2c90b 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -478,7 +478,7 @@ defrouter_addreq(new) if (newrt) { RT_LOCK(newrt); nd6_rtmsg(RTM_ADD, newrt); /* tell user process */ - newrt->rt_refcnt--; + RT_REMREF(newrt); RT_UNLOCK(newrt); } return; @@ -524,7 +524,7 @@ defrouter_addifreq(ifp) if (newrt) { RT_LOCK(newrt); nd6_rtmsg(RTM_ADD, newrt); - newrt->rt_refcnt--; + RT_REMREF(newrt); RT_UNLOCK(newrt); } } @@ -1470,7 +1470,7 @@ nd6_prefix_onlink(pr) if (rt != NULL) { RT_LOCK(rt); - rt->rt_refcnt--; + RT_REMREF(rt); RT_UNLOCK(rt); } |