Hi Patrik,

I tried the 2 patches.  They are working.

Thanks,

Feng


On Thu, Jul 14, 2016 at 4:52 AM, Patrik Flykt <patrik.flykt@linux.intel.com> wrote:
When the expiry time for an DHCPv6 address is infinite, no renewals
are needed. Return -EISCONN to notify the callers of this function
that no timeouts need to be set up.

Based on a patch by wangfe@nestlabs.com
---
 src/dhcpv6.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index 9e21040..1bd0000 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -1193,6 +1193,11 @@ static int check_restart(struct connman_dhcpv6 *dhcp)

        g_dhcpv6_client_get_timeouts(dhcp->dhcp_client, NULL, NULL,
                                NULL, &expired);
+
+       /* infinite lifetime for an DHCPv6 address */
+       if (expired == 0xffffffff)
+               return -EISCONN;
+
        current = time(NULL);

        if (current >= expired) {
--
2.8.1