From: Yu Watanabe Date: Fri, 17 Dec 2021 20:15:44 +0000 (+0900) Subject: network: dhcp4: pass IPServiceType=none to dhcp client X-Git-Tag: v250-rc3~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14dd873b88fcaafc79613ec861a512eaca1b2884;p=thirdparty%2Fsystemd.git network: dhcp4: pass IPServiceType=none to dhcp client Follow-up for b55093ce8884ee4fc72f28c6fd5e39897e921e21. --- diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c index 81faf48448c..cb9c428ae9b 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");