summaryrefslogtreecommitdiff
path: root/gdhcp/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdhcp/client.c')
-rw-r--r--gdhcp/client.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c
index 34e773f0..ec1cdeca 100644
--- a/gdhcp/client.c
+++ b/gdhcp/client.c
@@ -143,6 +143,7 @@ struct _GDHCPClient {
time_t last_renew;
time_t last_rebind;
time_t expire;
+ gboolean retransmit;
};
static inline void debug(GDHCPClient *client, const char *format, ...)
@@ -568,6 +569,22 @@ done:
close(sk);
}
+void g_dhcpv6_client_set_retransmit(GDHCPClient *dhcp_client)
+{
+ if (dhcp_client == NULL)
+ return;
+
+ dhcp_client->retransmit = TRUE;
+}
+
+void g_dhcpv6_client_clear_retransmit(GDHCPClient *dhcp_client)
+{
+ if (dhcp_client == NULL)
+ return;
+
+ dhcp_client->retransmit = FALSE;
+}
+
int g_dhcpv6_create_duid(GDHCPDuidType duid_type, int index, int type,
unsigned char **duid, int *duid_len)
{