blacklist.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  * SPDX-FileCopyrightText: 2016 Martin Landsmann <martin.landsmann@haw-hamburg.de>
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
22 #include <stdbool.h>
23 
24 #include "net/ipv6/addr.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
39 #ifndef CONFIG_GNRC_IPV6_BLACKLIST_SIZE
40 #define CONFIG_GNRC_IPV6_BLACKLIST_SIZE (8)
41 #endif
53 
62 
72 
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
bool gnrc_ipv6_blacklisted(const ipv6_addr_t *addr)
Checks if an IPv6 address is blacklisted.
int gnrc_ipv6_blacklist_add(const ipv6_addr_t *addr)
Adds an IPv6 address to the blacklist.
void gnrc_ipv6_blacklist_del(const ipv6_addr_t *addr)
Removes an IPv6 address from the blacklist.
void gnrc_ipv6_blacklist_print(void)
Prints the blacklist.
Definitions for IPv6 addresses.
Data type to represent an IPv6 address.
Definition: addr.h:64