pub const netopt_t_NETOPT_IPV6_ADDR: netopt_t = 9;
Expand description

@brief (@ref ipv6_addr_t[]) get IPv6 addresses of an interface as array of @ref ipv6_addr_t or add an IPv6 address as @ref ipv6_addr_t to 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