2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2017-02-11 00:47:55 +01:00
|
|
|
#pragma once
|
|
|
|
|
2018-05-22 13:10:17 +02:00
|
|
|
#include "conf-parser.h"
|
2017-02-11 00:47:55 +01:00
|
|
|
#include "list.h"
|
|
|
|
#include "macro.h"
|
|
|
|
|
|
|
|
typedef struct Network Network;
|
|
|
|
typedef struct IPv6ProxyNDPAddress IPv6ProxyNDPAddress;
|
|
|
|
typedef struct Link Link;
|
|
|
|
|
|
|
|
struct IPv6ProxyNDPAddress {
|
2019-03-01 05:27:47 +01:00
|
|
|
Network *network;
|
|
|
|
struct in6_addr in_addr;
|
2017-02-11 00:47:55 +01:00
|
|
|
|
2019-03-01 05:27:47 +01:00
|
|
|
LIST_FIELDS(IPv6ProxyNDPAddress, ipv6_proxy_ndp_addresses);
|
2017-02-11 00:47:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
void ipv6_proxy_ndp_address_free(IPv6ProxyNDPAddress *ipv6_proxy_ndp_address);
|
|
|
|
int ipv6_proxy_ndp_address_configure(Link *link, IPv6ProxyNDPAddress *ipv6_proxy_ndp_address);
|
|
|
|
int ipv6_proxy_ndp_addresses_configure(Link *link);
|
|
|
|
|
|
|
|
DEFINE_TRIVIAL_CLEANUP_FUNC(IPv6ProxyNDPAddress*, ipv6_proxy_ndp_address_free);
|
|
|
|
|
2018-05-22 13:10:17 +02:00
|
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_ipv6_proxy_ndp_address);
|