pub unsafe extern "C" fn gnrc_netif_ipv6_addr_match(
netif: *mut gnrc_netif_t,
addr: *const ipv6_addr_t,
) -> c_int
Expand description
@brief Returns the index of an address in gnrc_netif_t::ipv6_addrs of @p netif that matches @p addr best
@pre (netif != NULL) && (addr != NULL)
Can be used to check if a prefix is assigned to an interface.
@param[in] netif the network interface @param[in] addr the prefix to match
@note Only available with @ref net_gnrc_ipv6 “gnrc_ipv6”.
@return index of an address in gnrc_netif_t::ipv6_addrs of @p netif that best matches @p addr. @return -1, if no address on @p netif matches @p addr