Module Name:    src
Committed By:   ozaki-r
Date:           Thu Aug 13 10:14:26 UTC 2015

Modified Files:
        src/sys/net: route.c

Log Message:
Remove extra rt_refcnt++ in rtalloc1

rtrequest has already done it. So we don't need to do it once more.

This fixes regressed behavior of ARP cache expiration which an expired
cache doesn't disappear.


To generate a diff of this commit:
cvs rdiff -u -r1.147 -r1.148 src/sys/net/route.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/route.c
diff -u src/sys/net/route.c:1.147 src/sys/net/route.c:1.148
--- src/sys/net/route.c:1.147	Thu Aug 13 07:59:05 2015
+++ src/sys/net/route.c	Thu Aug 13 10:14:26 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: route.c,v 1.147 2015/08/13 07:59:05 ozaki-r Exp $	*/
+/*	$NetBSD: route.c,v 1.148 2015/08/13 10:14:26 ozaki-r Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@
 #include "opt_route.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.147 2015/08/13 07:59:05 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.148 2015/08/13 10:14:26 ozaki-r Exp $");
 
 #include <sys/param.h>
 #ifdef RTFLUSH_DEBUG
@@ -379,7 +379,6 @@ rtalloc1(const struct sockaddr *dst, int
 			}
 			KASSERT(newrt != NULL);
 			rt = newrt;
-			rt->rt_refcnt++;
 			if (rt->rt_flags & RTF_XRESOLVE) {
 				msgtype = RTM_RESOLVE;
 				goto miss;

Reply via email to