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 
36 #ifndef GNRC_IPV6_BLACKLIST_SIZE
37 #define GNRC_IPV6_BLACKLIST_SIZE (8)
38 #endif
39 
48 int gnrc_ipv6_blacklist_add(const ipv6_addr_t *addr);
49 
57 void gnrc_ipv6_blacklist_del(const ipv6_addr_t *addr);
58 
67 bool gnrc_ipv6_blacklisted(const ipv6_addr_t *addr);
68 
72 void gnrc_ipv6_blacklist_print(void);
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif /* NET_GNRC_IPV6_BLACKLIST_H */
79 
Definitions for IPv6 addresses.
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.
Data type to represent an IPv6 address.
Definition: ipv6/addr.h:74
void gnrc_ipv6_blacklist_print(void)
Prints the blacklist.
bool gnrc_ipv6_blacklisted(const ipv6_addr_t *addr)
Checks if an IPv6 address is blacklisted.