MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nd6_lookup

Function nd6_lookup

freebsd/netinet6/nd6.c:1195–1211  ·  view source on GitHub ↗

* the caller acquires and releases the lock on the lltbls * Returns the llentry locked */

Source from the content-addressed store, hash-verified

1193 * Returns the llentry locked
1194 */
1195struct llentry *
1196nd6_lookup(const struct in6_addr *addr6, int flags, struct ifnet *ifp)
1197{
1198 struct sockaddr_in6 sin6;
1199 struct llentry *ln;
1200
1201 bzero(&sin6, sizeof(sin6));
1202 sin6.sin6_len = sizeof(struct sockaddr_in6);
1203 sin6.sin6_family = AF_INET6;
1204 sin6.sin6_addr = *addr6;
1205
1206 IF_AFDATA_LOCK_ASSERT(ifp);
1207
1208 ln = lla_lookup(LLTABLE6(ifp), flags, (struct sockaddr *)&sin6);
1209
1210 return (ln);
1211}
1212
1213static struct llentry *
1214nd6_alloc(const struct in6_addr *addr6, int flags, struct ifnet *ifp)

Callers 9

nd6_is_addr_neighborFunction · 0.85
nd6_ioctlFunction · 0.85
nd6_cache_lladdrFunction · 0.85
nd6_resolveFunction · 0.85
nd6_resolve_slowFunction · 0.85
nd6_na_inputFunction · 0.85
icmp6_redirect_outputFunction · 0.85
defrouter_select_fibFunction · 0.85

Calls 2

bzeroFunction · 0.85
lla_lookupFunction · 0.85

Tested by

no test coverage detected