diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2017-03-14 19:31:33 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2017-03-14 20:09:50 +0900 |
commit | 793489d779f0727f9f59d02df75c0e69d07f4fc0 (patch) | |
tree | a2c4fd40e50ba6483eaa3ec91f1ceaa3db580197 /plugins | |
parent | 6613191eff5291c5992ee403557ef04caf9e650e (diff) | |
download | connman-793489d779f0727f9f59d02df75c0e69d07f4fc0.tar.gz connman-793489d779f0727f9f59d02df75c0e69d07f4fc0.tar.bz2 connman-793489d779f0727f9f59d02df75c0e69d07f4fc0.zip |
Apply DNS configuration methodsubmit/tizen/20170322.011410accepted/tizen/wearable/20170322.235735accepted/tizen/unified/20170322.235830accepted/tizen/tv/20170322.235708accepted/tizen/mobile/20170322.235633accepted/tizen/ivi/20170322.235801accepted/tizen/common/20170322.153711
Change-Id: If16e739fde7e9d736c66015ab1efa982e49d3482
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/telephony.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/plugins/telephony.c b/plugins/telephony.c index 459095db..2b4c5a4a 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) { |