diff options
author | Susant Sahani <ssahani@vmware.com> | 2020-04-12 14:14:52 +0200 |
---|---|---|
committer | Susant Sahani <ssahani@vmware.com> | 2020-04-12 14:14:52 +0200 |
commit | 7a0f1895d3ea8ee18dd33ed08e4a2188f7f836b6 (patch) | |
tree | fb3d75ee7ec5fdf5be2ac04c200b7135ebed559e /src | |
parent | bba97c98b8269b8e9f3c8cd29b7f393c2fc4b858 (diff) | |
download | systemd-7a0f1895d3ea8ee18dd33ed08e4a2188f7f836b6.tar.gz |
sd-network: DHCPv6 - Add NoPrefixAvail to error code
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-network/dhcp6-protocol.h | 3 | ||||
-rw-r--r-- | src/libsystemd-network/sd-dhcp6-client.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd-network/dhcp6-protocol.h b/src/libsystemd-network/dhcp6-protocol.h index ffae4453ac..19cda9ce45 100644 --- a/src/libsystemd-network/dhcp6-protocol.h +++ b/src/libsystemd-network/dhcp6-protocol.h @@ -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 { diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index 3f6caedfdf..1593f0418e 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -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); |