riot_sys::bindgen

Function gnrc_netif_ipv6_group_idx

Source
pub unsafe extern "C" fn gnrc_netif_ipv6_group_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_groups of @p netif

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

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

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

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

@return index of @p addr in gnrc_netif_t::ipv6_groups of @p netif @return -1, if @p netif is not in group @p addr