]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/systemd/sd-dhcp6-client.h
util-lib: split our string related calls from util.[ch] into its own file string...
[thirdparty/systemd.git] / src / systemd / sd-dhcp6-client.h
index c7f168fe214c44b043275477dc1ba4c69c09bdba..e95d758815315378cdce5ad5876816200b4ebbbf 100644 (file)
 ***/
 
 #include <net/ethernet.h>
+#include <stdbool.h>
 
 #include "sd-event.h"
 
 #include "sd-dhcp6-lease.h"
 
 enum {
-        DHCP6_EVENT_STOP                        = 0,
-        DHCP6_EVENT_RESEND_EXPIRE               = 10,
-        DHCP6_EVENT_RETRANS_MAX                 = 11,
-        DHCP6_EVENT_IP_ACQUIRE                  = 12,
+        SD_DHCP6_CLIENT_EVENT_STOP                      = 0,
+        SD_DHCP6_CLIENT_EVENT_RESEND_EXPIRE             = 10,
+        SD_DHCP6_CLIENT_EVENT_RETRANS_MAX               = 11,
+        SD_DHCP6_CLIENT_EVENT_IP_ACQUIRE                = 12,
+        SD_DHCP6_CLIENT_EVENT_INFORMATION_REQUEST       = 13,
 };
 
 typedef struct sd_dhcp6_client sd_dhcp6_client;
@@ -47,6 +49,10 @@ int sd_dhcp6_client_set_mac(sd_dhcp6_client *client, const uint8_t *addr,
                             size_t addr_len, uint16_t arp_type);
 int sd_dhcp6_client_set_duid(sd_dhcp6_client *client, uint16_t type, uint8_t *duid,
                              size_t duid_len);
+int sd_dhcp6_client_set_information_request(sd_dhcp6_client *client,
+                                            bool enabled);
+int sd_dhcp6_client_get_information_request(sd_dhcp6_client *client,
+                                            bool *enabled);
 int sd_dhcp6_client_set_request_option(sd_dhcp6_client *client,
                                        uint16_t option);