IPv6 address blacklist

This refuses IPv6 addresses that are defined in this list. More...

Detailed Description

Files

file  blacklist.h
 IPv6 blacklist definitions.
 

Macros

#define GNRC_IPV6_BLACKLIST_SIZE   (8)
 Maximum size of the blacklist.
 

Functions

int gnrc_ipv6_blacklist_add (const ipv6_addr_t *addr)
 Adds an IPv6 address to the blacklist. More...
 
void gnrc_ipv6_blacklist_del (const ipv6_addr_t *addr)
 Removes an IPv6 address from the blacklist. More...
 
bool gnrc_ipv6_blacklisted (const ipv6_addr_t *addr)
 Checks if an IPv6 address is blacklisted. More...
 
void gnrc_ipv6_blacklist_print (void)
 Prints the blacklist.
 

Function Documentation

◆ gnrc_ipv6_blacklist_add()

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

◆ gnrc_ipv6_blacklist_del()

void gnrc_ipv6_blacklist_del ( const ipv6_addr_t addr)

Addresses not in the blacklist will be ignored.

Parameters
[in]addrAn IPv6 address.

◆ gnrc_ipv6_blacklisted()

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