1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2017 Florian Klink <flokli@flokli.de>
13 typedef struct Network Network
;
14 typedef struct IPv6ProxyNDPAddress IPv6ProxyNDPAddress
;
15 typedef struct Link Link
;
17 struct IPv6ProxyNDPAddress
{
19 struct in6_addr in_addr
;
21 LIST_FIELDS(IPv6ProxyNDPAddress
, ipv6_proxy_ndp_addresses
);
25 int ipv6_proxy_ndp_address_new_static(Network
*network
, IPv6ProxyNDPAddress
** ipv6_proxy_ndp_address
);
26 void ipv6_proxy_ndp_address_free(IPv6ProxyNDPAddress
*ipv6_proxy_ndp_address
);
27 int ipv6_proxy_ndp_address_configure(Link
*link
, IPv6ProxyNDPAddress
*ipv6_proxy_ndp_address
);
28 int ipv6_proxy_ndp_addresses_configure(Link
*link
);
30 DEFINE_TRIVIAL_CLEANUP_FUNC(IPv6ProxyNDPAddress
*, ipv6_proxy_ndp_address_free
);
32 int config_parse_ipv6_proxy_ndp_address(const char *unit
, const char *filename
, unsigned line
, const char *section
, unsigned section_line
, const char *lvalue
, int ltype
, const char *rvalue
, void *data
, void *userdata
);