riot_sys

Constant netopt_t_NETOPT_IPV6_GROUP

Source
pub const netopt_t_NETOPT_IPV6_GROUP: netopt_t = 12;
Expand description

@brief (@ref ipv6_addr_t) get IPv6 multicast groups of an interface as array of @ref ipv6_addr_t or join an IPv6 multicast group as @ref ipv6_addr_t on an interface

When adding an IPv6 address to a GNRC interface using @ref GNRC_NETAPI_MSG_TYPE_SET, the gnrc_netapi_opt_t::context field can be used to pass the prefix length (8 MSB) and some flags (8 LSB) according to @ref net_gnrc_netif_ipv6_addrs_flags. The address is however always considered to be manually added. When getting the option you can pass an array of @ref ipv6_addr_t of any length greater than 0 to the getter. The array will be filled up to to its maximum and the remaining addresses on the interface will be ignored