diff options
author | Nilesh Poddar <npoddar@quicinc.com> | 2015-02-24 12:11:11 -0800 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2015-02-25 10:37:36 +0900 |
commit | f3d4a58519d6bf8e74ac035aeb845bff6dc12aa4 (patch) | |
tree | 37777f6633328b98d9a61e34bd74f2916652825d /services | |
parent | 538987da86aeff7895921f7c3f93da37e62113ec (diff) | |
download | frameworks_base-f3d4a58519d6bf8e74ac035aeb845bff6dc12aa4.zip frameworks_base-f3d4a58519d6bf8e74ac035aeb845bff6dc12aa4.tar.gz frameworks_base-f3d4a58519d6bf8e74ac035aeb845bff6dc12aa4.tar.bz2 |
Append forwarder name to ipfwd command
Pass the name of entity that is requesting to enable/disable
ip forwarding
Change-Id: Iaf04768a23c417eb7d40af776c6fc76efaa67bb7
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/NetworkManagementService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/NetworkManagementService.java b/services/core/java/com/android/server/NetworkManagementService.java index 748018d..6719aa6 100644 --- a/services/core/java/com/android/server/NetworkManagementService.java +++ b/services/core/java/com/android/server/NetworkManagementService.java @@ -1133,7 +1133,7 @@ public class NetworkManagementService extends INetworkManagementService.Stub public void setIpForwardingEnabled(boolean enable) { mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); try { - mConnector.execute("ipfwd", enable ? "enable" : "disable"); + mConnector.execute("ipfwd", enable ? "enable" : "disable", "tethering"); } catch (NativeDaemonConnectorException e) { throw e.rethrowAsParcelableException(); } |