X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Ftelephony.c;h=2b4c5a4a10f71b0c382d35b38494c8d1f86f559a;hb=793489d779f0727f9f59d02df75c0e69d07f4fc0;hp=459095dbf6348d2937107b6fd1cd122d09f4303f;hpb=6613191eff5291c5992ee403557ef04caf9e650e;p=platform%2Fupstream%2Fconnman.git diff --git a/plugins/telephony.c b/plugins/telephony.c index 459095d..2b4c5a4 100755 --- a/plugins/telephony.c +++ b/plugins/telephony.c @@ -1207,11 +1207,20 @@ static gboolean __set_network_context( ipv4_netmask, ipv4_gw); if (ipv4_dns1) +#if defined TIZEN_EXT + __connman_service_nameserver_append(service, ipv4_dns1, FALSE, + CONNMAN_IPCONFIG_TYPE_IPV4); +#else __connman_service_nameserver_append(service, ipv4_dns1, FALSE); +#endif //if (ipv4_dns2) if (ipv4_dns2 && !ipv4_dns1) +#if defined TIZEN_EXT + __connman_service_nameserver_append(service, ipv4_dns2, FALSE, + CONNMAN_IPCONFIG_TYPE_IPV4); +#else __connman_service_nameserver_append(service, ipv4_dns2, FALSE); - +#endif /* ipv6 set */ if (network->ipv6_address == NULL) network->ipv6_address = @@ -1237,10 +1246,20 @@ static gboolean __set_network_context( 64, ipv6_gw); if (ipv6_dns1) +#if defined TIZEN_EXT + __connman_service_nameserver_append(service, ipv6_dns1, FALSE, + CONNMAN_IPCONFIG_TYPE_IPV6); +#else __connman_service_nameserver_append(service, ipv6_dns1, FALSE); +#endif //if (ipv6_dns2) if (ipv6_dns2 && !ipv6_dns1) +#if defined TIZEN_EXT + __connman_service_nameserver_append(service, ipv6_dns2, FALSE, + CONNMAN_IPCONFIG_TYPE_IPV6); +#else __connman_service_nameserver_append(service, ipv6_dns2, FALSE); +#endif if (active == TRUE && connman_network_get_connected(network->network) == TRUE) {