IPv6 address whitelist

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

Detailed Description

Files

file  whitelist.h
 IPv6 whitelist definitions.
 

Macros

#define GNRC_IPV6_WHITELIST_SIZE   (8)
 Maximum size of the whitelist.
 

Functions

int gnrc_ipv6_whitelist_add (const ipv6_addr_t *addr)
 Adds an IPv6 address to the whitelist. More...
 
void gnrc_ipv6_whitelist_del (const ipv6_addr_t *addr)
 Removes an IPv6 address from the whitelist. More...
 
bool gnrc_ipv6_whitelisted (const ipv6_addr_t *addr)
 Checks if an IPv6 address is whitelisted. More...
 
void gnrc_ipv6_whitelist_print (void)
 Prints the whitelist.
 

Function Documentation

◆ gnrc_ipv6_whitelist_add()

int gnrc_ipv6_whitelist_add ( const ipv6_addr_t addr)
Parameters
[in]addrAn IPv6 address.
Returns
0, on success.
-1, if whitelist is full.

◆ gnrc_ipv6_whitelist_del()

void gnrc_ipv6_whitelist_del ( const ipv6_addr_t addr)

Addresses not in the whitelist will be ignored.

Parameters
[in]addrAn IPv6 address.

◆ gnrc_ipv6_whitelisted()

bool gnrc_ipv6_whitelisted ( const ipv6_addr_t addr)
Parameters
[in]addrAn IPv6 address.
Returns
true, if addr is whitelisted.
false, if addr is not whitelisted.