summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-dhcp4.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-12-17 21:15:44 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-12-18 00:35:42 +0100
commit14dd873b88fcaafc79613ec861a512eaca1b2884 (patch)
treeed4932f34517b2e7e2a551e40a594d52e99414af /src/network/networkd-dhcp4.c
parentman: fix machine-id(5) man page reference (diff)
downloadsystemd-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.c2
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");