]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-ipv6-proxy-ndp.h
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / network / networkd-ipv6-proxy-ndp.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2017 Florian Klink <flokli@flokli.de>
8 ***/
9
10 #include "list.h"
11 #include "macro.h"
12
13 typedef struct Network Network;
14 typedef struct IPv6ProxyNDPAddress IPv6ProxyNDPAddress;
15 typedef struct Link Link;
16
17 struct IPv6ProxyNDPAddress {
18 Network *network;
19 struct in6_addr in_addr;
20
21 LIST_FIELDS(IPv6ProxyNDPAddress, ipv6_proxy_ndp_addresses);
22 };
23
24
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);
29
30 DEFINE_TRIVIAL_CLEANUP_FUNC(IPv6ProxyNDPAddress*, ipv6_proxy_ndp_address_free);
31
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);