| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "networkd-forward.h" |
| 5 |
|
| 6 |
typedef enum DHCPClientIdentifier { |
| 7 |
DHCP_CLIENT_ID_MAC, |
| 8 |
DHCP_CLIENT_ID_DUID, |
| 9 |
_DHCP_CLIENT_ID_MAX, |
| 10 |
_DHCP_CLIENT_ID_INVALID = -EINVAL, |
| 11 |
} DHCPClientIdentifier; |
| 12 |
|
| 13 |
void network_adjust_dhcp4(Network *network); |
| 14 |
int dhcp4_update_mac(Link *link); |
| 15 |
int dhcp4_update_ipv6_connectivity(Link *link); |
| 16 |
int dhcp4_start_full(Link *link, bool set_ipv6_connectivity); |
| 17 |
static inline int dhcp4_start(Link *link) { |
| 18 |
return dhcp4_start_full(link, true); |
| 19 |
} |
| 20 |
int dhcp4_renew(Link *link); |
| 21 |
int dhcp4_lease_lost(Link *link); |
| 22 |
int dhcp4_check_ready(Link *link); |
| 23 |
|
| 24 |
int link_request_dhcp4_client(Link *link); |
| 25 |
int link_drop_dhcp4_config(Link *link, Network *network); |
| 26 |
|
| 27 |
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_client_identifier); |
| 28 |
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_max_attempts); |
| 29 |
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_ip_service_type); |
| 30 |
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_socket_priority); |
| 31 |
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_mud_url); |
| 32 |
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_fallback_lease_lifetime); |
| 33 |
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_label); |