diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-12-17 21:15:44 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-12-18 00:35:42 +0100 |
commit | 14dd873b88fcaafc79613ec861a512eaca1b2884 (patch) | |
tree | ed4932f34517b2e7e2a551e40a594d52e99414af /src/network/networkd-dhcp4.c | |
parent | man: fix machine-id(5) man page reference (diff) | |
download | systemd-14dd873b88fcaafc79613ec861a512eaca1b2884.tar.xz systemd-14dd873b88fcaafc79613ec861a512eaca1b2884.zip |
network: dhcp4: pass IPServiceType=none to dhcp client
Follow-up for b55093ce8884ee4fc72f28c6fd5e39897e921e21.
Diffstat (limited to '')
-rw-r--r-- | src/network/networkd-dhcp4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c index 81faf48448..cb9c428ae9 100644 --- a/src/network/networkd-dhcp4.c +++ b/src/network/networkd-dhcp4.c @@ -1528,7 +1528,7 @@ static int dhcp4_configure(Link *link) { return log_link_debug_errno(link, r, "DHCPv4 CLIENT: Failed to set max attempts: %m"); } - if (link->network->dhcp_ip_service_type > 0) { + if (link->network->dhcp_ip_service_type >= 0) { r = sd_dhcp_client_set_service_type(link->dhcp_client, link->network->dhcp_ip_service_type); if (r < 0) return log_link_debug_errno(link, r, "DHCPv4 CLIENT: Failed to set IP service type: %m"); |