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

Function nd6_resolve_addr

freebsd/netinet6/nd6.c:2439–2449  ·  view source on GitHub ↗

* Do L2 address resolution for @sa_dst address. Stores found * address in @desten buffer. Copy of lle ln_flags can be also * saved in @pflags if @pflags is non-NULL. * * Return values: * - 0 on success (address copied to buffer). * - EWOULDBLOCK (no local error, but address is still unresolved) * - other errors (alloc failure, etc) */

Source from the content-addressed store, hash-verified

2437 * - other errors (alloc failure, etc)
2438 */
2439int
2440nd6_resolve_addr(struct ifnet *ifp, int flags, const struct sockaddr *dst,
2441 char *desten, uint32_t *pflags)
2442{
2443 int error;
2444
2445 flags |= LLE_ADDRONLY;
2446 error = nd6_resolve_slow(ifp, flags, NULL,
2447 (const struct sockaddr_in6 *)dst, desten, pflags, NULL);
2448 return (error);
2449}
2450
2451int
2452nd6_flush_holdchain(struct ifnet *ifp, struct mbuf *chain,

Callers

nothing calls this directly

Calls 1

nd6_resolve_slowFunction · 0.85

Tested by

no test coverage detected