summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/nd6.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-11-17 09:25:08 +0000
committerbz <bz@FreeBSD.org>2010-11-17 09:25:08 +0000
commit7d3dc5f19235f5a952e3c58efa44502ebbd88a44 (patch)
treec33bf4a8f54df99944ef1da83a2f75c2fd6060bd /sys/netinet6/nd6.c
parent5e8d82f5f9ee8a86838565d1f59213077cccf79c (diff)
downloadFreeBSD-src-7d3dc5f19235f5a952e3c58efa44502ebbd88a44.zip
FreeBSD-src-7d3dc5f19235f5a952e3c58efa44502ebbd88a44.tar.gz
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
Diffstat (limited to 'sys/netinet6/nd6.c')
-rw-r--r--sys/netinet6/nd6.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 10fae82..0315469 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);
}
OpenPOWER on IntegriCloud