1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
4 #include "conf-parser.h"
6 #include "in-addr-util.h"
8 typedef struct Address Address
;
9 typedef struct IPv6Token IPv6Token
;
10 typedef struct Link Link
;
12 IPv6Token
* ipv6_token_ref(IPv6Token
*token
);
13 IPv6Token
* ipv6_token_unref(IPv6Token
*token
);
15 int dhcp_pd_generate_addresses(Link
*link
, const struct in6_addr
*prefix
, Hashmap
**ret
);
16 int ndisc_generate_addresses(Link
*link
, const struct in6_addr
*prefix
, uint8_t prefixlen
, Hashmap
**ret
);
17 int radv_generate_addresses(Link
*link
, Set
*tokens
, const struct in6_addr
*prefix
, uint8_t prefixlen
, Hashmap
**ret
);
19 int regenerate_address(Address
*address
, Link
*link
);
21 CONFIG_PARSER_PROTOTYPE(config_parse_address_generation_type
);