Append forwarder name to ipfwd command

Pass the name of entity that is requesting to enable/disable
ip forwarding

Change-Id: Iaf04768a23c417eb7d40af776c6fc76efaa67bb7
This commit is contained in:
Nilesh Poddar
2015-02-24 12:11:11 -08:00
committed by Lorenzo Colitti
parent 538987da86
commit f3d4a58519

View File

@@ -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();
}