diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-06-15 16:24:46 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-08-10 07:55:34 +0200 |
commit | ccffa166d8fa6019c472b4d118516841f1b947e4 (patch) | |
tree | 79c25f8e7ac6217eeb5a2a73512c2de3c363a05d /src/network/networkd-dhcp4.h | |
parent | network: do not request UUID frequently on failure (diff) | |
download | systemd-ccffa166d8fa6019c472b4d118516841f1b947e4.tar.xz systemd-ccffa166d8fa6019c472b4d118516841f1b947e4.zip |
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.h | 6 |
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); |