pub unsafe extern "C" fn gnrc_netif_ipv6_addr_idx(
    netif: *mut gnrc_netif_t,
    addr: *const ipv6_addr_t
) -> c_int
Expand description

@brief Returns the index of @p addr in gnrc_netif_t::ipv6_addrs of @p netif

@pre (netif != NULL) && (addr != NULL)

Can be used to check if an address is assigned to an interface.

@param[in] netif the network interface @param[in] addr the address to check

@note Only available with @ref net_gnrc_ipv6 “gnrc_ipv6”.

@return index of @p addr in gnrc_netif_t::ipv6_addrs of @p netif @return -1, if @p addr isn’t assigned to @p netif