blacklist.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  * Copyright (C) 2016 Martin Landsmann <martin.landsmann@haw-hamburg.de>
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
22 #ifndef NET_GNRC_IPV6_BLACKLIST_H
23 #define NET_GNRC_IPV6_BLACKLIST_H
24 
25 #include <stdbool.h>
26 
27 #include "net/ipv6/addr.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
42 #ifndef CONFIG_GNRC_IPV6_BLACKLIST_SIZE
43 #define CONFIG_GNRC_IPV6_BLACKLIST_SIZE (8)
44 #endif
45 
55 int gnrc_ipv6_blacklist_add(const ipv6_addr_t *addr);
56 
64 void gnrc_ipv6_blacklist_del(const ipv6_addr_t *addr);
65 
74 bool gnrc_ipv6_blacklisted(const ipv6_addr_t *addr);
75 
79 void gnrc_ipv6_blacklist_print(void);
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif /* NET_GNRC_IPV6_BLACKLIST_H */
86 
ipv6_addr_t
Data type to represent an IPv6 address.
Definition: addr.h:74
gnrc_ipv6_blacklisted
bool gnrc_ipv6_blacklisted(const ipv6_addr_t *addr)
Checks if an IPv6 address is blacklisted.
addr.h
Definitions for IPv6 addresses.
gnrc_ipv6_blacklist_print
void gnrc_ipv6_blacklist_print(void)
Prints the blacklist.
gnrc_ipv6_blacklist_add
int gnrc_ipv6_blacklist_add(const ipv6_addr_t *addr)
Adds an IPv6 address to the blacklist.
gnrc_ipv6_blacklist_del
void gnrc_ipv6_blacklist_del(const ipv6_addr_t *addr)
Removes an IPv6 address from the blacklist.