]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-dhcp-server-static-lease.h
tree-wide: fix SPDX short identifier for LGPL-2.1-or-later
[thirdparty/systemd.git] / src / network / networkd-dhcp-server-static-lease.h
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 NetworkConfigSection NetworkConfigSection;
12
13 typedef struct DHCPStaticLease {
14 Network *network;
15 NetworkConfigSection *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);