summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2016-03-10 01:50:10 (GMT)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2016-03-10 01:50:10 (GMT)
commit8376399fe3831b19b83c6852b6fab98d189ab9a0 (patch)
tree32a5e57222a767ad198ba36a7833deb64519590a
parentc1cc873b8aa16affd668d8c1d8251f07f2989b34 (diff)
parentea435fc085c16ebd3d40521d362ad0ccddfbad48 (diff)
downloadconnman-8376399fe3831b19b83c6852b6fab98d189ab9a0.zip
connman-8376399fe3831b19b83c6852b6fab98d189ab9a0.tar.gz
connman-8376399fe3831b19b83c6852b6fab98d189ab9a0.tar.bz2
Merge "gdhcp: Don't send DHCPREQUEST if last assigned IP is Link Local Address" into tizen
-rwxr-xr-xgdhcp/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c
index b4b3e7e..8189613 100755
--- a/gdhcp/client.c
+++ b/gdhcp/client.c
@@ -2770,7 +2770,8 @@ int g_dhcp_client_start(GDHCPClient *dhcp_client, const char *last_address)
addr = 0;
} else {
addr = ntohl(inet_addr(last_address));
- if (addr == 0xFFFFFFFF) {
+ if (addr == 0xFFFFFFFF || ((addr & LINKLOCAL_ADDR) ==
+ LINKLOCAL_ADDR)) {
addr = 0;
} else {
g_free(dhcp_client->last_address);