summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp6-protocol.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-08-13 04:47:54 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-08-13 05:26:22 +0900
commit1929c1fcb2f305206c01a6fc79cd038d6d9615f5 (patch)
treefb57455266aeef7a4518facaac1aa50d26c0c3d4 /src/libsystemd-network/dhcp6-protocol.h
parent38db7a4ed388b032faae221067b77d553a54e6a6 (diff)
downloadsystemd-1929c1fcb2f305206c01a6fc79cd038d6d9615f5.tar.gz
dhcp6: gracefully handle NoBinding error
When we receive NoBinding status code, the requesting binding (address or any other information) does not exist anymore in the server. Hence, resending the request is meaningless. Let's restart the transaction from the beginning in that case.
Diffstat (limited to 'src/libsystemd-network/dhcp6-protocol.h')
-rw-r--r--src/libsystemd-network/dhcp6-protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-network/dhcp6-protocol.h b/src/libsystemd-network/dhcp6-protocol.h
index f4e47857e3..18217691b7 100644
--- a/src/libsystemd-network/dhcp6-protocol.h
+++ b/src/libsystemd-network/dhcp6-protocol.h
@@ -154,3 +154,4 @@ const char *dhcp6_message_type_to_string(DHCP6MessageType s) _const_;
DHCP6MessageType dhcp6_message_type_from_string(const char *s) _pure_;
const char *dhcp6_message_status_to_string(DHCP6Status s) _const_;
DHCP6Status dhcp6_message_status_from_string(const char *s) _pure_;
+int dhcp6_message_status_to_errno(DHCP6Status s);