1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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
This commit is contained in:
Bjoern A. Zeeb 2010-11-17 09:25:08 +00:00
parent 816b3bd1b0
commit 20723e34e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215418

View File

@ -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);
}