Save DHCP leased seconds received from connman in the profile 09/142209/1 accepted/tizen/4.0/unified/20170828.223312 accepted/tizen/unified/20170811.021057 submit/tizen/20170808.043745 submit/tizen/20170809.085632 submit/tizen_4.0/20170828.100003
authorAbhishek Sansanwal <abhishek.s94@samsung.com>
Thu, 3 Aug 2017 05:27:47 +0000 (10:57 +0530)
committerAbhishek Sansanwal <abhishek.s94@samsung.com>
Thu, 3 Aug 2017 05:28:57 +0000 (10:58 +0530)
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I46eebdb70bf61b9ead405fa46f9f7aae61732811

include/profile/network-pm-config.h
src/network-profile-intf.c

index f2594f8..3065fc1 100755 (executable)
@@ -369,6 +369,9 @@ typedef struct
        /** DHCP Server Address */
        net_addr_t      ServerAddr;
 
+       /** DHCP Lease Duration */
+       int              DHCPLeaseDuration;
+
        /** Proxy Method type */
        net_proxy_type_t        ProxyMethod;
        /** Proxy address */
index 2e4855e..4ff87b4 100755 (executable)
@@ -933,6 +933,8 @@ static int __net_extract_common_info(const char *key, GVariant *variant, net_pro
 
                                __net_extract_ip(value, &net_info->ServerAddr);
                                net_info->BServerAddr = TRUE;
+                       } else if (g_strcmp0(subKey, "DHCPLeaseDuration") == 0) {
+                               net_info->DHCPLeaseDuration = g_variant_get_int32(var);
                        }
                }
                g_variant_iter_free(iter);