* 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) */
| 2437 | * - other errors (alloc failure, etc) |
| 2438 | */ |
| 2439 | int |
| 2440 | nd6_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 | |
| 2451 | int |
| 2452 | nd6_flush_holdchain(struct ifnet *ifp, struct mbuf *chain, |
nothing calls this directly
no test coverage detected