IPv6 address whitelist

This allows you to only accept IPv6 addresses that are defined in this list.

int gnrc_ipv6_whitelist_add(const ipv6_addr_t * addr)

Adds an IPv6 address to the whitelist.

Parameters

addr:An IPv6 address.

Return values

  • 0, on success.
  • -1, if whitelist is full.
void gnrc_ipv6_whitelist_del(const ipv6_addr_t * addr)

Removes an IPv6 address from the whitelist.

Addresses not in the whitelist will be ignored.

Parameters

addr:An IPv6 address.

bool gnrc_ipv6_whitelisted(const ipv6_addr_t * addr)

Checks if an IPv6 address is whitelisted.

Parameters

addr:An IPv6 address.

Return values

  • true, if addr is whitelisted.
  • false, if addr is not whitelisted.
void gnrc_ipv6_whitelist_print(void)

Prints the whitelist.

GNRC_IPV6_WHITELIST_SIZE

Maximum size of the whitelist.

1
(8)