summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorChad Brubaker <cbrubaker@google.com>2014-03-21 20:52:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-21 20:52:05 +0000
commitde4e7b4947998638e0345ab9a181bf35a8827bef (patch)
treea21cf5d846ff9c3c71e67aca3bc48628120d369f /services/java
parentabf701e6751aed487d4ed0986e0fae8810c3658f (diff)
parent1b66923148130dec7139175a3bf4c4d534cabac4 (diff)
downloadframeworks_base-de4e7b4947998638e0345ab9a181bf35a8827bef.zip
frameworks_base-de4e7b4947998638e0345ab9a181bf35a8827bef.tar.gz
frameworks_base-de4e7b4947998638e0345ab9a181bf35a8827bef.tar.bz2
Merge "Include the interface for clearDnsInterfaceForUidRange" into klp-dev
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/ConnectivityService.java2
-rw-r--r--services/java/com/android/server/NetworkManagementService.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java
index 3e22792..41a0e6b 100644
--- a/services/java/com/android/server/ConnectivityService.java
+++ b/services/java/com/android/server/ConnectivityService.java
@@ -3907,7 +3907,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
boolean forwardDns) {
try {
mNetd.clearUidRangeRoute(interfaze, uidStart, uidEnd);
- if (forwardDns) mNetd.clearDnsInterfaceForUidRange(uidStart, uidEnd);
+ if (forwardDns) mNetd.clearDnsInterfaceForUidRange(interfaze, uidStart, uidEnd);
} catch (RemoteException e) {
}
diff --git a/services/java/com/android/server/NetworkManagementService.java b/services/java/com/android/server/NetworkManagementService.java
index 92f99c2..72fce62 100644
--- a/services/java/com/android/server/NetworkManagementService.java
+++ b/services/java/com/android/server/NetworkManagementService.java
@@ -1567,10 +1567,10 @@ public class NetworkManagementService extends INetworkManagementService.Stub
}
@Override
- public void clearDnsInterfaceForUidRange(int uid_start, int uid_end) {
+ public void clearDnsInterfaceForUidRange(String iface, int uid_start, int uid_end) {
mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG);
try {
- mConnector.execute("resolver", "clearifaceforuidrange", uid_start, uid_end);
+ mConnector.execute("resolver", "clearifaceforuidrange", iface, uid_start, uid_end);
} catch (NativeDaemonConnectorException e) {
throw e.rethrowAsParcelableException();
}