diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c index a878a473561..4b8b5a0b252 100644 --- a/src/libsystemd-network/sd-dhcp-client.c +++ b/src/libsystemd-network/sd-dhcp-client.c @@ -1548,8 +1548,11 @@ static int client_parse_message( } r = dhcp_option_parse(message, len, dhcp_lease_parse_options, lease, &error_message); - if (r == -ENOMSG && client->bootp) - r = DHCP_ACK; /* BOOTP messages don't have a DHCP message type option */ + if (r == -ENOMSG && client->bootp) { + /* BOOTP messages don't have a DHCP message type option */ + log_dhcp_client(client, "received BOOTREQUEST"); + r = DHCP_ACK; + } else if (r < 0) return log_dhcp_client_errno(client, r, "Failed to parse DHCP options, ignoring: %m"); @@ -1649,7 +1652,7 @@ static int client_handle_offer_or_rapid_ack(sd_dhcp_client *client, DHCPMessage dhcp_lease_unref_and_replace(client->lease, lease); if (client->lease->rapid_commit || client->bootp) { - log_dhcp_client(client, "ACK"); + log_dhcp_client(client, client->bootp ? "BOOTREPLY" : "ACK"); return SD_DHCP_CLIENT_EVENT_IP_ACQUIRE; }