blacklist.h¶
IPv6 blacklist definitions.
-
GNRC_IPV6_BLACKLIST_SIZE¶ Maximum size of the blacklist.
1
(8)
-
int
gnrc_ipv6_blacklist_add(const ipv6_addr_t * addr)¶ Adds an IPv6 address to the blacklist.
Parameters
addr: An IPv6 address. Return values
- 0, on success.
- -1, if blacklist is full.
-
void
gnrc_ipv6_blacklist_del(const ipv6_addr_t * addr)¶ Removes an IPv6 address from the blacklist.
Addresses not in the blacklist will be ignored.
Parameters
addr: An IPv6 address.
-
bool
gnrc_ipv6_blacklisted(const ipv6_addr_t * addr)¶ Checks if an IPv6 address is blacklisted.
Parameters
addr: An IPv6 address. Return values
- true, if
addris blacklisted. - false, if
addris not blacklisted.
- true, if
-
void
gnrc_ipv6_blacklist_print(void)¶ Prints the blacklist.