resolved conflicts for merge of 9520d6af to honeycomb-plus-aosp
Change-Id: Ic839eb7bd8081b94802dbbf9140b9d1fa0cf7df3
This commit is contained in:
@@ -1785,13 +1785,18 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
if (p == null) return;
|
if (p == null) return;
|
||||||
Collection<InetAddress> dnses = p.getDnses();
|
Collection<InetAddress> dnses = p.getDnses();
|
||||||
try {
|
try {
|
||||||
mNetd.setDnsServersForInterface(Integer.toString(netType),
|
mNetd.setDnsServersForInterface(p.getInterfaceName(),
|
||||||
NetworkUtils.makeStrings(dnses));
|
NetworkUtils.makeStrings(dnses));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Slog.e(TAG, "exception setting dns servers: " + e);
|
Slog.e(TAG, "exception setting dns servers: " + e);
|
||||||
}
|
}
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
if (mNetConfigs[netType].isDefault()) {
|
if (mNetConfigs[netType].isDefault()) {
|
||||||
|
try {
|
||||||
|
mNetd.setDefaultInterfaceForDns(p.getInterfaceName());
|
||||||
|
} catch (Exception e) {
|
||||||
|
Slog.e(TAG, "exception setting default dns interface: " + e);
|
||||||
|
}
|
||||||
int j = 1;
|
int j = 1;
|
||||||
if (dnses.size() == 0 && mDefaultDns != null) {
|
if (dnses.size() == 0 && mDefaultDns != null) {
|
||||||
String dnsString = mDefaultDns.getHostAddress();
|
String dnsString = mDefaultDns.getHostAddress();
|
||||||
@@ -1818,10 +1823,6 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
SystemProperties.set("net.dns" + j++, dnsString);
|
SystemProperties.set("net.dns" + j++, dnsString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
mNetd.setDefaultInterfaceForDns(Integer.toString(netType));
|
|
||||||
} catch (Exception e) {
|
|
||||||
Slog.e(TAG, "exception setting default dns interface: " + e);}
|
|
||||||
for (int k=j ; k<mNumDnsEntries; k++) {
|
for (int k=j ; k<mNumDnsEntries; k++) {
|
||||||
if (changed || !TextUtils.isEmpty(SystemProperties.get("net.dns" + k))) {
|
if (changed || !TextUtils.isEmpty(SystemProperties.get("net.dns" + k))) {
|
||||||
if (DBG) log("erasing net.dns" + k);
|
if (DBG) log("erasing net.dns" + k);
|
||||||
|
|||||||
Reference in New Issue
Block a user