IPv6 address whitelist

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

Detailed Description

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

Modules

 GNRC IPv6 address whitelisting compile configurations
 

Files

file  whitelist.h
 IPv6 whitelist definitions.
 

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)

Adds an IPv6 address to the whitelist.

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)

Removes an IPv6 address from the whitelist.

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)

Checks if an IPv6 address is whitelisted.

Parameters
[in]addrAn IPv6 address.
Returns
true, if addr is whitelisted.
false, if addr is not whitelisted.