FreeBSD/sys/netinet6/nd6.c
/* 
 * the caller acquires and releases the lock on the lltbls
 * Returns the llentry locked
 */
the caller acquires and releases the lock on the lltbls
Returns the llentry locked
the caller acquires and releases the lock on the lltbls Returns the llentry locked
struct llentry *
nd6_lookup(const struct in6_addr *addr6, int flags, struct ifnet *ifp)
{
	struct sockaddr_in6 sin6;
	struct llentry *ln;
	bzero(&sin6, sizeof(sin6));
	sin6.sin6_len = sizeof(struct sockaddr_in6);
	sin6.sin6_family = AF_INET6;
	sin6.sin6_addr = *addr6;
	IF_AFDATA_LOCK_ASSERT(ifp);
	ln = lla_lookup(LLTABLE6(ifp), flags, (struct sockaddr *)&sin6);
	return (ln);
}
struct llentry * nd6_lookup ( const struct in6_addr * addr6 , int flags , struct ifnet * ifp ) { struct sockaddr_in6 sin6 ; struct llentry * ln ; bzero ( & sin6 , sizeof ( sin6 ) ) ; sin6 . sin6_len = sizeof ( struct sockaddr_in6 ) ; sin6 . sin6_family = AF_INET6 ; sin6 . sin6_addr = * addr6 ; IF_AFDATA_LOCK_ASSERT ( ifp ) ; ln = lla_lookup ( LLTABLE6 ( ifp ) , flags , ( struct sockaddr * ) & sin6 ) ; return ( ln ) ; }
the caller acquires and releases the lock on the lltbls
 Returns the llentry locked
the caller acquires and releases the lock on the lltbls Returns the llentry locked