diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2019-09-23 15:45:33 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2019-09-23 17:08:24 +0530 |
commit | a0c29c7da07fa8bf3e8839a4a64a183a02296a32 (patch) | |
tree | 6e92a0c4a208e00c275ee546b485e12c6575c145 /src/dhcp.c | |
parent | 83d8c81d27d65f9d4a3bdc3c3685d4b03a13ab70 (diff) | |
download | connman-a0c29c7da07fa8bf3e8839a4a64a183a02296a32.tar.gz connman-a0c29c7da07fa8bf3e8839a4a64a183a02296a32.tar.bz2 connman-a0c29c7da07fa8bf3e8839a4a64a183a02296a32.zip |
Added support to enable/disable Auto-IP option.submit/tizen/20190925.080914submit/tizen/20190924.065941accepted/tizen/unified/20190926.065658
Added support to enable/disable Auto-IP option using main.conf
Change-Id: Iea1cae5a28681a90a5f79735c7374791a227feb7
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'src/dhcp.c')
-rw-r--r-- | src/dhcp.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -284,6 +284,14 @@ static void no_lease_cb(GDHCPClient *dhcp_client, gpointer user_data) DBG("No lease available ipv4ll %d client %p", dhcp->ipv4ll_running, dhcp->ipv4ll_client); +#if defined TIZEN_EXT + if (connman_setting_get_bool("EnableAutoIp") == false) { + DBG("link-local address autoconfiguration is disabled."); + if (dhcp->network) + __connman_network_disconnect(dhcp->network); + return; + } +#endif if (dhcp->timeout > 0) g_source_remove(dhcp->timeout); |