mirror of
https://github.com/systemd/systemd.git
synced 2025-02-18 21:57:48 +03:00
sd-dhcp6-client: update log messages
This commit is contained in:
parent
7e6abd25f4
commit
d3aa9d6a80
@ -1155,7 +1155,7 @@ static int client_parse_message(
|
|||||||
switch (optcode) {
|
switch (optcode) {
|
||||||
case SD_DHCP6_OPTION_CLIENTID:
|
case SD_DHCP6_OPTION_CLIENTID:
|
||||||
if (clientid)
|
if (clientid)
|
||||||
return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(EINVAL), "%s contains multiple clientids",
|
return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(EINVAL), "%s contains multiple client IDs",
|
||||||
dhcp6_message_type_to_string(message->type));
|
dhcp6_message_type_to_string(message->type));
|
||||||
|
|
||||||
if (optlen != client->duid_len ||
|
if (optlen != client->duid_len ||
|
||||||
@ -1170,7 +1170,7 @@ static int client_parse_message(
|
|||||||
case SD_DHCP6_OPTION_SERVERID:
|
case SD_DHCP6_OPTION_SERVERID:
|
||||||
r = dhcp6_lease_get_serverid(lease, NULL, NULL);
|
r = dhcp6_lease_get_serverid(lease, NULL, NULL);
|
||||||
if (r >= 0)
|
if (r >= 0)
|
||||||
return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(EINVAL), "%s contains multiple serverids",
|
return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(EINVAL), "%s contains multiple server IDs",
|
||||||
dhcp6_message_type_to_string(message->type));
|
dhcp6_message_type_to_string(message->type));
|
||||||
|
|
||||||
r = dhcp6_lease_set_serverid(lease, optval, optlen);
|
r = dhcp6_lease_set_serverid(lease, optval, optlen);
|
||||||
@ -1310,7 +1310,7 @@ static int client_parse_message(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!clientid)
|
if (!clientid)
|
||||||
return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(EINVAL), "%s has incomplete options",
|
return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(EINVAL), "%s message does not contain client ID. Ignoring.",
|
||||||
dhcp6_message_type_to_string(message->type));
|
dhcp6_message_type_to_string(message->type));
|
||||||
|
|
||||||
if (client->state != DHCP6_STATE_INFORMATION_REQUEST) {
|
if (client->state != DHCP6_STATE_INFORMATION_REQUEST) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user