From c997776d7c832608d60560c380ff43549d2dbe3a Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 8 Nov 2003 23:36:32 +0000 Subject: 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 --- sys/netinet/ip_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netinet/ip_input.c') diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 2f2dc96..f09c477 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -237,7 +237,7 @@ static struct rtcache { *(_ro) = ip_fwdcache.rc_ro; \ if ((rt = (_ro)->ro_rt) != NULL) { \ RT_LOCK(rt); \ - rt->rt_refcnt++; \ + RT_ADDREF(rt); \ RT_UNLOCK(rt); \ } \ RTCACHE_UNLOCK(); \ -- cgit v1.1