Debian Codegraph @

src/network/networkd-dhcp-server-static-lease.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3 #pragma once
4
5 #include <netinet/in.h>
6
7 #include "networkd-forward.h"
8
9 typedef struct DHCPStaticLease {
10 Network *network;
11 ConfigSection *section;
12
13 struct in_addr address;
14 uint8_t *client_id;
15 size_t client_id_size;
16 char *hostname;
17 } DHCPStaticLease;
18
19 void network_drop_invalid_static_leases(Network *network);
20
21 CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_static_lease_address);
22 CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_static_lease_hwaddr);
23 CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_static_lease_hostname);