diff options
-rwxr-xr-x | src/dhcpv6.c | 13 | ||||
-rwxr-xr-x | src/ipconfig.c | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c index b1b2f63d..adf88273 100755 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -203,10 +203,23 @@ static int set_duid(struct connman_service *service, int duid_len; ident = __connman_service_get_ident(service); +#if defined TIZEN_EXT + if(ident != NULL) + DBG("ident : %s", ident); +#endif keyfile = connman_storage_load_service(ident); + +#if defined TIZEN_EXT + if (!keyfile) { + keyfile = g_key_file_new(); + if (!keyfile) + return -EIO; + } +#else if (!keyfile) return -EINVAL; +#endif hex_duid = g_key_file_get_string(keyfile, ident, "IPv6.DHCP.DUID", NULL); diff --git a/src/ipconfig.c b/src/ipconfig.c index a9d0b5a7..caebd393 100755 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1442,7 +1442,11 @@ int __connman_ipconfig_address_unset(struct connman_ipconfig *ipconfig) if (!ipconfig) return 0; +#if defined TIZEN_EXT + DBG("ipconfig method %d type %d", ipconfig->method, ipconfig->type); +#else DBG("method %d", ipconfig->method); +#endif switch (ipconfig->method) { case CONNMAN_IPCONFIG_METHOD_UNKNOWN: |