]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-ipv6-proxy-ndp.h
tree-wide: drop 'This file is part of systemd' blurb
[thirdparty/systemd.git] / src / network / networkd-ipv6-proxy-ndp.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright 2017 Florian Klink <flokli@flokli.de>
6 ***/
7
8 #include "conf-parser.h"
9 #include "list.h"
10 #include "macro.h"
11
12 typedef struct Network Network;
13 typedef struct IPv6ProxyNDPAddress IPv6ProxyNDPAddress;
14 typedef struct Link Link;
15
16 struct IPv6ProxyNDPAddress {
17 Network *network;
18 struct in6_addr in_addr;
19
20 LIST_FIELDS(IPv6ProxyNDPAddress, ipv6_proxy_ndp_addresses);
21 };
22
23 int ipv6_proxy_ndp_address_new_static(Network *network, IPv6ProxyNDPAddress ** ipv6_proxy_ndp_address);
24 void ipv6_proxy_ndp_address_free(IPv6ProxyNDPAddress *ipv6_proxy_ndp_address);
25 int ipv6_proxy_ndp_address_configure(Link *link, IPv6ProxyNDPAddress *ipv6_proxy_ndp_address);
26 int ipv6_proxy_ndp_addresses_configure(Link *link);
27
28 DEFINE_TRIVIAL_CLEANUP_FUNC(IPv6ProxyNDPAddress*, ipv6_proxy_ndp_address_free);
29
30 CONFIG_PARSER_PROTOTYPE(config_parse_ipv6_proxy_ndp_address);