Merge "Append forwarder name to ipfwd command" into lmp-mr1-wfc-dev

This commit is contained in:
Lorenzo Colitti
2015-02-27 00:46:12 +00:00
committed by Android (Google) Code Review

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