Loading...
Searching...
No Matches
whitelist.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include <stdbool.h>
21
22#include "net/ipv6/addr.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
37#ifndef CONFIG_GNRC_IPV6_WHITELIST_SIZE
38#define CONFIG_GNRC_IPV6_WHITELIST_SIZE (8)
39#endif
41
51
60
70
75
76#ifdef __cplusplus
77}
78#endif
79
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:64