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:
parent
c54655882b
commit
f30efcc9cf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user