Start DHCPDISCOVERY when DHCPREQUEST of INIT-REBOOT has failed
authorJaehyun Kim <jeik01.kim@samsung.com>
Fri, 12 Apr 2013 12:48:46 +0000 (21:48 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 12 Apr 2013 12:51:22 +0000 (21:51 +0900)
gdhcp/client.c
packaging/connman.spec

index 54d2b90..85857fd 100644 (file)
@@ -1233,6 +1233,21 @@ static gboolean request_timeout(gpointer user_data)
 {
        GDHCPClient *dhcp_client = user_data;
 
+#if defined TIZEN_EXT
+       if (dhcp_client->init_reboot == TRUE) {
+               debug(dhcp_client, "DHCPREQUEST of INIT-REBOOT has failed");
+
+               /* Start DHCPDISCOVERY when DHCPREQUEST of INIT-REBOOT has failed */
+               g_dhcp_client_set_address_known(dhcp_client, FALSE);
+
+               dhcp_client->retry_times = 0;
+               dhcp_client->requested_ip = 0;
+
+               g_dhcp_client_start(dhcp_client, dhcp_client->last_address);
+
+               return FALSE;
+       }
+#endif
        debug(dhcp_client, "request timeout (retries %d)",
                                        dhcp_client->retry_times);
 
index 8b596bb..02263c7 100644 (file)
@@ -1,5 +1,5 @@
 Name:           connman
-Version:        1.3_14
+Version:        1.3_15
 Release:        1
 License:        GPLv2
 Summary:        Connection Manager