summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-05-06 13:06:33 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-06 14:34:10 +0300
commit68ce7d3019b847c655bac4764b2b0a7d4e32ce69 (patch)
treec31b7a8b05e6754dc6b9ac811ce45203910059c2
parent5f9ba9675250f311aefec203e154d7f06e2cc5c1 (diff)
downloadconnman-68ce7d3019b847c655bac4764b2b0a7d4e32ce69.tar.gz
connman-68ce7d3019b847c655bac4764b2b0a7d4e32ce69.tar.bz2
connman-68ce7d3019b847c655bac4764b2b0a7d4e32ce69.zip
dhcpv6: Remember the last used IPv6 address
This is required so that we can decide whether to send CONFIRM or SOLICITATION message to server.
-rw-r--r--src/dhcpv6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index f32b4c24..0ac7f4ce 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -539,6 +539,9 @@ static int set_addresses(GDHCPClient *dhcp_client,
__connman_ipconfig_set_prefixlen(ipconfig, prefix_len);
DBG("new address %s/%d", address, prefix_len);
+
+ __connman_ipconfig_set_dhcp_address(ipconfig, address);
+ __connman_service_save(service);
}
g_free(address);