diff options
author | Chad Brubaker <cbrubaker@google.com> | 2014-02-20 14:46:33 -0800 |
---|---|---|
committer | Chad Brubaker <cbrubaker@google.com> | 2014-03-15 15:31:47 -0700 |
commit | 1b66923148130dec7139175a3bf4c4d534cabac4 (patch) | |
tree | b7f0ad0ca5e12a4805daa4a5666484b66aca6d92 /services/java | |
parent | 8e240af51df5d7b793f4ae54ce6ff4795ee9f6ac (diff) | |
download | frameworks_base-1b66923148130dec7139175a3bf4c4d534cabac4.zip frameworks_base-1b66923148130dec7139175a3bf4c4d534cabac4.tar.gz frameworks_base-1b66923148130dec7139175a3bf4c4d534cabac4.tar.bz2 |
Include the interface for clearDnsInterfaceForUidRange
With netd allowing overlapping rules for uid range rules the interface
name is needed to make sure only the correct rule is removed.
Bug: 12134439
Change-Id: I94f77f154f49ca8d5f6cf49683a4473cc92c3eb7
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/ConnectivityService.java | 2 | ||||
-rw-r--r-- | services/java/com/android/server/NetworkManagementService.java | 4 |
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 df2fd5e..5c7951a 100644 --- a/services/java/com/android/server/ConnectivityService.java +++ b/services/java/com/android/server/ConnectivityService.java @@ -3898,7 +3898,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(); } |