summaryrefslogtreecommitdiff
path: root/gdhcp/client.c
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2017-04-06 15:33:12 +0900
committerSaurav Babu <saurav.babu@samsung.com>2017-04-06 16:40:40 +0530
commite625f6110aabbcd192274bf1e00e3a6a4927bd27 (patch)
treef94a305946be3eda9a43c84e0bbe22c0f8cbac28 /gdhcp/client.c
parent6df34c52ef916fd3122053525647ccfbad82def9 (diff)
downloadconnman-e625f6110aabbcd192274bf1e00e3a6a4927bd27.tar.gz
connman-e625f6110aabbcd192274bf1e00e3a6a4927bd27.tar.bz2
connman-e625f6110aabbcd192274bf1e00e3a6a4927bd27.zip
Provide DHCP Server address to upper layer while appending IPv4 Data
Change-Id: I8d6a33ddeff94c7bbfb56ed7e4d64966be5bcd31 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Diffstat (limited to 'gdhcp/client.c')
-rwxr-xr-xgdhcp/client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c
index 7e04176e..ff4539b7 100755
--- a/gdhcp/client.c
+++ b/gdhcp/client.c
@@ -3029,7 +3029,11 @@ char *g_dhcp_client_get_server_address(GDHCPClient *dhcp_client)
if (!dhcp_client)
return NULL;
+#if defined TIZEN_EXT
+ return get_ip(htonl(dhcp_client->server_ip));
+#else
return get_ip(dhcp_client->server_ip);
+#endif
}
char *g_dhcp_client_get_address(GDHCPClient *dhcp_client)