]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: dhcp4: pass IPServiceType=none to dhcp client
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 Dec 2021 20:15:44 +0000 (05:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 Dec 2021 23:35:42 +0000 (08:35 +0900)
Follow-up for b55093ce8884ee4fc72f28c6fd5e39897e921e21.

src/network/networkd-dhcp4.c

index 81faf48448c5cb157e3691439ce473c337cde294..cb9c428ae9bb69b893e7c9593ecb51197cddfd17 100644 (file)
@@ -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");