mirror of
https://github.com/systemd/systemd.git
synced 2024-11-04 13:51:24 +03:00
Merge pull request #15411 from ssahani/systemd-issue-15375
sd-network: DHCPv6 - Add NoPrefixAvail to error code
This commit is contained in:
commit
9d5dac4dce
@ -464,8 +464,8 @@ int dhcp6_option_parse_ia(DHCP6Option *iaoption, DHCP6IA *ia) {
|
||||
if (status < 0)
|
||||
return status;
|
||||
if (status > 0) {
|
||||
log_dhcp6_client(client, "IA status %d",
|
||||
status);
|
||||
log_dhcp6_client(client, "IA status %s",
|
||||
dhcp6_message_status_to_string(status));
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@ -89,7 +89,8 @@ enum {
|
||||
DHCP6_STATUS_NO_BINDING = 3,
|
||||
DHCP6_STATUS_NOT_ON_LINK = 4,
|
||||
DHCP6_STATUS_USE_MULTICAST = 5,
|
||||
_DHCP6_STATUS_MAX = 6,
|
||||
DHCP6_STATUS_NO_PREFIX_AVAIL = 6,
|
||||
_DHCP6_STATUS_MAX = 7,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
@ -112,6 +112,7 @@ const char * dhcp6_message_status_table[_DHCP6_STATUS_MAX] = {
|
||||
[DHCP6_STATUS_NO_BINDING] = "Binding unavailable",
|
||||
[DHCP6_STATUS_NOT_ON_LINK] = "Not on link",
|
||||
[DHCP6_STATUS_USE_MULTICAST] = "Use multicast",
|
||||
[DHCP6_STATUS_NO_PREFIX_AVAIL] = "No prefix available",
|
||||
};
|
||||
|
||||
DEFINE_STRING_TABLE_LOOKUP(dhcp6_message_status, int);
|
||||
|
Loading…
Reference in New Issue
Block a user