Replace hidden NMS API for setting MTU
Replace the hidden NMS setMtu API with calling INetd directly for incoming ConnectivityService mainline. Bug: 170598012 Test: atest FrameworksNetTests Test: manually connect and disconnect network Change-Id: I6a51d8033b3354824d4cfb953c2bbe3055d00102
This commit is contained in:
parent
1b7ae75c11
commit
6d5c0e714b
1 changed files with 3 additions and 3 deletions
|
|
@ -2437,9 +2437,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||
|
||||
try {
|
||||
if (VDBG || DDBG) log("Setting MTU size: " + iface + ", " + mtu);
|
||||
mNMS.setMtu(iface, mtu);
|
||||
} catch (Exception e) {
|
||||
Slog.e(TAG, "exception in setMtu()" + e);
|
||||
mNetd.interfaceSetMtu(iface, mtu);
|
||||
} catch (RemoteException | ServiceSpecificException e) {
|
||||
Slog.e(TAG, "exception in interfaceSetMtu()" + e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue