summaryrefslogtreecommitdiff
path: root/server/NetworkController.cpp
diff options
context:
space:
mode:
authorLuke Huang <huangluke@google.com>2019-03-18 15:53:21 +0800
committerLuke Huang <huangluke@google.com>2019-04-24 18:31:45 +0800
commitcfd04b232b89f9c98d421ff1cc7343a57f6954d3 (patch)
tree45ebc95486b0ae05dbf90cf60b66149f08236721 /server/NetworkController.cpp
parent7720e4a569eacecce3d8c02ecdc023907e6c4c87 (diff)
NDC migration to binder ver.
Make ndc communicating with netd via binder Bug: 65862741 Test: built, flashed, booted system/netd/tests/runtests.sh pass manual test ndc commands Change-Id: I9edfda61d8c3a4d7b404a428e7dbb4d08eff62a9
Diffstat (limited to 'server/NetworkController.cpp')
-rw-r--r--server/NetworkController.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/server/NetworkController.cpp b/server/NetworkController.cpp
index 9fc2c66a..f7cb8dd3 100644
--- a/server/NetworkController.cpp
+++ b/server/NetworkController.cpp
@@ -23,16 +23,15 @@
// acquiring the lock. Private functions in this file should call xxxLocked() methods and access
// internal state directly.
-#include "NetworkController.h"
-
#define LOG_TAG "Netd"
-#include "log/log.h"
+
+#include "NetworkController.h"
#include <android-base/strings.h>
#include <cutils/misc.h> // FIRST_APPLICATION_UID
#include <netd_resolv/resolv.h>
#include <netd_resolv/resolv_stub.h>
-#include "android/net/INetd.h"
+#include "log/log.h"
#include "Controllers.h"
#include "DummyNetwork.h"
@@ -59,12 +58,6 @@ const unsigned MAX_NET_ID = 65535;
} // namespace
-const unsigned NetworkController::MIN_OEM_ID = 1;
-const unsigned NetworkController::MAX_OEM_ID = 50;
-const unsigned NetworkController::DUMMY_NET_ID = 51;
-// NetIds 52..98 are reserved for future use.
-const unsigned NetworkController::LOCAL_NET_ID = INetd::LOCAL_NET_ID;
-
// All calls to methods here are made while holding a write lock on mRWLock.
// They are mostly not called directly from this class, but from methods in PhysicalNetwork.cpp.
// However, we're the only user of that class, so all calls to those methods come from here and are