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 NET_GNRC_IPV6_WHITELIST_H
21 #define NET_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 
40 #ifndef CONFIG_GNRC_IPV6_WHITELIST_SIZE
41 #define CONFIG_GNRC_IPV6_WHITELIST_SIZE (8)
42 #endif
54 
63 
73 
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* NET_GNRC_IPV6_WHITELIST_H */
bool gnrc_ipv6_whitelisted(const ipv6_addr_t *addr)
Checks if an IPv6 address is whitelisted.
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.
Definitions for IPv6 addresses.
Data type to represent an IPv6 address.
Definition: addr.h:72