From 20723e34e3dad31245c4f45daa150aae93672c31 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Wed, 17 Nov 2010 09:25:08 +0000 Subject: [PATCH] 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 --- sys/netinet6/nd6.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 10fae824786..0315469fe8f 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -851,10 +851,8 @@ nd6_lookup(struct in6_addr *addr6, int flags, struct ifnet *ifp) 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); } -- 2.45.2