summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp6-internal.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-01-13 20:19:01 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-01-13 20:20:19 +0900
commit16de849fd866c9b75b269ed902c7d591df983174 (patch)
tree3c5941303cfec9a77beea0a83991041174c8d065 /src/libsystemd-network/dhcp6-internal.h
parent0ac9daa4a169f627f5b3f85a4cdcdbd2c2b2e2ca (diff)
downloadsystemd-16de849fd866c9b75b269ed902c7d591df983174.tar.gz
sd-dhcp6-client: expose client_parse_message()
To introduce tests for the function in later commits.
Diffstat (limited to 'src/libsystemd-network/dhcp6-internal.h')
-rw-r--r--src/libsystemd-network/dhcp6-internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsystemd-network/dhcp6-internal.h b/src/libsystemd-network/dhcp6-internal.h
index 31482d7717..f943409856 100644
--- a/src/libsystemd-network/dhcp6-internal.h
+++ b/src/libsystemd-network/dhcp6-internal.h
@@ -11,6 +11,7 @@
#include "sd-event.h"
#include "sd-dhcp6-client.h"
+#include "dhcp6-protocol.h"
#include "hashmap.h"
#include "list.h"
#include "macro.h"
@@ -130,6 +131,12 @@ int dhcp6_network_bind_udp_socket(int ifindex, struct in6_addr *address);
int dhcp6_network_send_udp_socket(int s, struct in6_addr *address,
const void *packet, size_t len);
+int client_parse_message(
+ sd_dhcp6_client *client,
+ DHCP6Message *message,
+ size_t len,
+ sd_dhcp6_lease *lease);
+
const char *dhcp6_message_type_to_string(int s) _const_;
int dhcp6_message_type_from_string(const char *s) _pure_;
const char *dhcp6_message_status_to_string(int s) _const_;