1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 
3 #pragma once
4 
5 #include <inttypes.h>
6 
7 #include "conf-parser.h"
8 #include "in-addr-util.h"
9 
10 typedef struct Network Network;
11 typedef struct ConfigSection ConfigSection;
12 
13 typedef struct DHCPStaticLease {
14         Network *network;
15         ConfigSection *section;
16 
17         struct in_addr address;
18         uint8_t *client_id;
19         size_t client_id_size;
20 } DHCPStaticLease;
21 
22 DHCPStaticLease *dhcp_static_lease_free(DHCPStaticLease *lease);
23 void network_drop_invalid_static_leases(Network *network);
24 
25 CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_static_lease_address);
26 CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_static_lease_hwaddr);
27