summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-06-15 15:39:36 +0530
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-17 21:27:27 +0530
commita59c6e4a0176ca9ad05c1980dcebfbb07b8a188f (patch)
tree9e473cf3e56f21048704ac4674afe6718bda1ffe /src/dhcp.c
parent46c06a384067f29cdd9f1550278cda29798db7b2 (diff)
downloadconnman-a59c6e4a0176ca9ad05c1980dcebfbb07b8a188f.tar.gz
connman-a59c6e4a0176ca9ad05c1980dcebfbb07b8a188f.tar.bz2
connman-a59c6e4a0176ca9ad05c1980dcebfbb07b8a188f.zip
[SPIN] Fix the connman bugs.
- Fixed NTP service's DNS resolving failure in Hive project. - Do not turn "wlan0" interface down in cleanup_devices(). - Set resource limits "RLIMIT_NOFILE" for a process. - After appending a file, fflush and fsync all modified in-core data of the file. Change-Id: I2767b3302d6204d066fe2075027828ff209d0ee0 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'src/dhcp.c')
-rwxr-xr-xsrc/dhcp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index bc7deb21..5514c332 100755
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -192,12 +192,16 @@ static int ipv4ll_start_client(struct connman_dhcp *dhcp)
if (error != G_DHCP_CLIENT_ERROR_NONE)
return -EINVAL;
+#if !defined TIZEN_EXT
if (getenv("CONNMAN_DHCP_DEBUG")) {
+#endif
dhcp->ipv4ll_debug_prefix = g_strdup_printf("IPv4LL index %d",
index);
g_dhcp_client_set_debug(ipv4ll_client, dhcp_debug,
dhcp->ipv4ll_debug_prefix);
+#if !defined TIZEN_EXT
}
+#endif
g_dhcp_client_set_id(ipv4ll_client);
@@ -526,12 +530,16 @@ static int dhcp_initialize(struct connman_dhcp *dhcp)
if (error != G_DHCP_CLIENT_ERROR_NONE)
return -EINVAL;
+#if !defined TIZEN_EXT
if (getenv("CONNMAN_DHCP_DEBUG")) {
+#endif
dhcp->dhcp_debug_prefix = g_strdup_printf("DHCP index %d",
index);
g_dhcp_client_set_debug(dhcp_client, dhcp_debug,
dhcp->dhcp_debug_prefix);
+#if !defined TIZEN_EXT
}
+#endif
g_dhcp_client_set_id(dhcp_client);