summaryrefslogtreecommitdiff
path: root/src/network/networkd-dhcp4.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-06-15 23:24:46 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-08-10 14:55:34 +0900
commitccffa166d8fa6019c472b4d118516841f1b947e4 (patch)
tree79c25f8e7ac6217eeb5a2a73512c2de3c363a05d /src/network/networkd-dhcp4.h
parent6211b7362a6e61c32b392bbc35e73ca01cb5cbbf (diff)
downloadsystemd-ccffa166d8fa6019c472b4d118516841f1b947e4.tar.gz
network: use request queue to configure DHCP{4,6} clients
Previously, when UUID is requested for DUID, then the clients are configured in callback of bus methods. But now, 'request queue' was implemented, so we can use it to wait until the product UUID is obtained.
Diffstat (limited to 'src/network/networkd-dhcp4.h')
-rw-r--r--src/network/networkd-dhcp4.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp4.h b/src/network/networkd-dhcp4.h
index e41e39fc6e..152c2213b4 100644
--- a/src/network/networkd-dhcp4.h
+++ b/src/network/networkd-dhcp4.h
@@ -4,6 +4,8 @@
#include "conf-parser.h"
typedef struct Link Link;
+typedef struct Network Network;
+typedef struct Request Request;
typedef enum DHCPClientIdentifier {
DHCP_CLIENT_ID_MAC,
@@ -18,11 +20,13 @@ typedef enum DHCPClientIdentifier {
} DHCPClientIdentifier;
void network_adjust_dhcp4(Network *network);
-int dhcp4_configure(Link *link);
int dhcp4_update_mac(Link *link);
int dhcp4_start(Link *link);
int dhcp4_lease_lost(Link *link);
+int request_process_dhcp4_client(Request *req);
+int link_request_dhcp4_client(Link *link);
+
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_client_identifier);
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_acl_ip_address);
CONFIG_PARSER_PROTOTYPE(config_parse_dhcp_max_attempts);