]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-ipv6-proxy-ndp.h
b50db8f9fe959a17df4a3375ea4ceff90360262b
[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 "conf-parser.h"
11 #include "list.h"
12 #include "macro.h"
13
14 typedef struct Network Network;
15 typedef struct IPv6ProxyNDPAddress IPv6ProxyNDPAddress;
16 typedef struct Link Link;
17
18 struct IPv6ProxyNDPAddress {
19 Network *network;
20 struct in6_addr in_addr;
21
22 LIST_FIELDS(IPv6ProxyNDPAddress, ipv6_proxy_ndp_addresses);
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 CONFIG_PARSER_PROTOTYPE(config_parse_ipv6_proxy_ndp_address);