1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-11 20:58:27 +03:00

distinguish ACK from BOOTREPLY in logs

This commit is contained in:
Avram Dorfman 2024-12-18 16:25:08 -05:00
parent c54655882b
commit f30efcc9cf

View File

@ -1648,8 +1648,14 @@ 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, client->bootp ? "BOOTREPLY" : "ACK");
if (client->lease->rapid_commit) {
log_dhcp_client(client, "ACK");
return SD_DHCP_CLIENT_EVENT_IP_ACQUIRE;
}
else if (client->bootp) {
log_dhcp_client(client, "BOOTREPLY");
return SD_DHCP_CLIENT_EVENT_IP_ACQUIRE;
}