summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dhcpv6.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index 6b03a1b9..f32b4c24 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -62,6 +62,7 @@ struct connman_dhcpv6 {
GDHCPClient *dhcp_client;
guint timeout; /* operation timeout in msec */
+ guint MRD; /* max operation timeout in msec */
guint RT; /* in msec */
gboolean use_ta; /* set to TRUE if IPv6 privacy is enabled */
GSList *prefixes; /* network prefixes from radvd */
@@ -80,6 +81,11 @@ static void clear_timer(struct connman_dhcpv6 *dhcp)
g_source_remove(dhcp->timeout);
dhcp->timeout = 0;
}
+
+ if (dhcp->MRD > 0) {
+ g_source_remove(dhcp->MRD);
+ dhcp->MRD = 0;
+ }
}
static inline float get_random()