whitelist.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef GNRC_IPV6_WHITELIST_H
21 #define GNRC_IPV6_WHITELIST_H
22 
23 #include <stdbool.h>
24 
25 #include "net/ipv6/addr.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
34 #ifndef GNRC_IPV6_WHITELIST_SIZE
35 #define GNRC_IPV6_WHITELIST_SIZE (8)
36 #endif
37 
46 int gnrc_ipv6_whitelist_add(const ipv6_addr_t *addr);
47 
55 void gnrc_ipv6_whitelist_del(const ipv6_addr_t *addr);
56 
65 bool gnrc_ipv6_whitelisted(const ipv6_addr_t *addr);
66 
70 void gnrc_ipv6_whitelist_print(void);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* GNRC_IPV6_WHITELIST_H */
77 
Definitions for IPv6 addresses.
void gnrc_ipv6_whitelist_print(void)
Prints the whitelist.
int gnrc_ipv6_whitelist_add(const ipv6_addr_t *addr)
Adds an IPv6 address to the whitelist.
void gnrc_ipv6_whitelist_del(const ipv6_addr_t *addr)
Removes an IPv6 address from the whitelist.
bool gnrc_ipv6_whitelisted(const ipv6_addr_t *addr)
Checks if an IPv6 address is whitelisted.
Data type to represent an IPv6 address.
Definition: ipv6/addr.h:74