pub unsafe extern "C" fn gnrc_netif_ipv6_addr_best_src(
netif: *mut gnrc_netif_t,
dst: *const ipv6_addr_t,
ll_only: bool,
) -> *mut ipv6_addr_t
Expand description
@brief Searches for the best address on an interface usable as a source address for a given destination address.
@pre (netif != NULL) && (dst != NULL)
@param[in] netif the network interface @param[in] dst the destination address you want to find a source for. @param[in] ll_only only link local addresses qualify
@see RFC 6724
@note Only available with @ref net_gnrc_ipv6 “gnrc_ipv6”.
@todo Rule 4 from RFC 6724 is currently not implemented. Has to updated as soon as gnrc supports Mobile IP.
@todo Rule 6 from RFC 6724 is currently not implemented. Has to updated as soon as gnrc supports flow labels.
@todo Rule 7 from RFC 6724 is currently not implemented. Has to updated as soon as gnrc supports temporary addresses.
@return The best source address for a packet addressed to @p dst @return NULL, if no matching address can be found on the interface.