Reserve NetIds 1..50 for OEM use.

Also reserve 51..100 for our use.

Bug: 17303534
Change-Id: Id082368b493dc3c5b5c479e51d273458d80ec6aa
This commit is contained in:
Sreeram Ramachandran
2014-09-05 16:06:34 -07:00
parent ad35b13305
commit 9171989a9c

View File

@@ -425,8 +425,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
TelephonyManager mTelephonyManager; TelephonyManager mTelephonyManager;
// sequence number for Networks // sequence number for Networks; keep in sync with system/netd/NetworkController.cpp
private final static int MIN_NET_ID = 10; // some reserved marks private final static int MIN_NET_ID = 100; // some reserved marks
private final static int MAX_NET_ID = 65535; private final static int MAX_NET_ID = 65535;
private int mNextNetId = MIN_NET_ID; private int mNextNetId = MIN_NET_ID;