pub unsafe extern "C" fn gnrc_ipv6_nib_get_next_hop_l2addr(
    dst: *const ipv6_addr_t,
    netif: *mut gnrc_netif_t,
    pkt: *mut gnrc_pktsnip_t,
    nce: *mut gnrc_ipv6_nib_nc_t
) -> c_int
Expand description

@brief Gets link-layer address of next hop to a destination address

@pre (dst != NULL) && (nce != NULL)

@param[in] dst Destination address of a packet. @param[in] netif Restrict search to this interface. May be NULL for any interface. @param[in] pkt The IPv6 packet in sending order for which the next hop is searched. Needed for queuing for with reactive routing or address resolution. May be NULL. Will be released properly on error. @param[out] nce The neighbor cache entry of the next hop to @p dst.

@return 0, on success. @return -ENETUNREACH if there is no route to host. @return -EHOSTUNREACH if the next hop is not reachable or if @p dst was link-local, but @p iface was @ref KERNEL_PID_UNDEF (no neighbor cache entry will be created in this case and no neighbor solicitation sent).