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
43 
53 int gnrc_ipv6_whitelist_add(const ipv6_addr_t *addr);
54 
62 void gnrc_ipv6_whitelist_del(const ipv6_addr_t *addr);
63 
72 bool gnrc_ipv6_whitelisted(const ipv6_addr_t *addr);
73 
77 void gnrc_ipv6_whitelist_print(void);
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* NET_GNRC_IPV6_WHITELIST_H */
84 
ipv6_addr_t
Data type to represent an IPv6 address.
Definition: addr.h:74
addr.h
Definitions for IPv6 addresses.
gnrc_ipv6_whitelisted
bool gnrc_ipv6_whitelisted(const ipv6_addr_t *addr)
Checks if an IPv6 address is whitelisted.
gnrc_ipv6_whitelist_print
void gnrc_ipv6_whitelist_print(void)
Prints the whitelist.
gnrc_ipv6_whitelist_del
void gnrc_ipv6_whitelist_del(const ipv6_addr_t *addr)
Removes an IPv6 address from the whitelist.
gnrc_ipv6_whitelist_add
int gnrc_ipv6_whitelist_add(const ipv6_addr_t *addr)
Adds an IPv6 address to the whitelist.