Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2010 09:25:08 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215418 - head/sys/netinet6
Message-ID:  <201011170925.oAH9P8Lq084665@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed Nov 17 09:25:08 2010
New Revision: 215418
URL: http://svn.freebsd.org/changeset/base/215418

Log:
  No need to re-initialize the callout.  We initially do it in in6_lltable_new()
  right after allocation.  Worse, we are losing the right flags here.
  
  MFC after:	4 days

Modified:
  head/sys/netinet6/nd6.c

Modified: head/sys/netinet6/nd6.c
==============================================================================
--- head/sys/netinet6/nd6.c	Wed Nov 17 08:56:01 2010	(r215417)
+++ head/sys/netinet6/nd6.c	Wed Nov 17 09:25:08 2010	(r215418)
@@ -851,10 +851,8 @@ nd6_lookup(struct in6_addr *addr6, int f
 	    llflags |= LLE_EXCLUSIVE;	
 	
 	ln = lla_lookup(LLTABLE6(ifp), llflags, (struct sockaddr *)&sin6);
-	if ((ln != NULL) && (flags & LLE_CREATE)) {
+	if ((ln != NULL) && (flags & LLE_CREATE))
 		ln->ln_state = ND6_LLINFO_NOSTATE;
-		callout_init(&ln->ln_timer_ch, 0);
-	}
 	
 	return (ln);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011170925.oAH9P8Lq084665>