eced78ed33213f121268db02d84d49262bf09613 |
|
06-Oct-2016 |
Michal Karpinski <mkarpinski@google.com> |
DO NOT MERGE Add connect event reporting Adds reporting of connect events including netId, destination IP address, destination port, uid and connect latency. Also enables the relevant tests in the connect_benchmark. Currently ignores the new data it receives, further work will be done in the subsequent CLs. Test: for now just the benchmarking, in the future CTS Bug: 29748723 (cherry picked from commit 4b9b78aa02336de9291e5085401cef44c03c3bba) Change-Id: I3ec05db3a9b914af38307282ede3f3439716b1ef
/system/netd/server/main.cpp
|
8ef9907bdbbeaae00be914c77f3425e2e31c2f28 |
|
06-Oct-2016 |
Michal Karpinski <mkarpinski@google.com> |
DO NOT MERGE Adding EventReporter class This class stores the reporting level and can be used to get the event listener service. Bug: 29748723 (cherry picked from commit be581e228bd1a97efd179edcdd3e744622fb99b8) Change-Id: I825dbce5d40af6b781d177a611ab606853fc2e01
/system/netd/server/main.cpp
|
e4851dede1dd24bbd80ffd30c4e89c7753fed121 |
|
17-Mar-2016 |
Lorenzo Colitti <lorenzo@google.com> |
Start NetdNativeService before CommandListener. Starting CommandListener tells NetworkManagementService that netd is ready to accept commands. Ensure that the binder service is started (i.e., we have called startThreadPool) before we do this. Bug: 27239233 Change-Id: Ica89e72f51eb4752cb5cea2e4096c6a9dc5776d7
/system/netd/server/main.cpp
|
0a3eb8540d1df3d2e74e546e80b0815419708f40 |
|
23-Feb-2016 |
Lorenzo Colitti <lorenzo@google.com> |
Don't use a manually-sized buffer for the PID. Change-Id: Ibdda590b828c61caa488e959f3e596dc981a2c65
/system/netd/server/main.cpp
|
1cfa54374f5ba63d69d6fcca767c4f6647cb6de2 |
|
24-Feb-2016 |
Pierre Imai <imaipi@google.com> |
Wrap netd's controller to make them usable from other classes Change-Id: Icb76b43e89c5a9e5806b95002d3653dd99912494
/system/netd/server/main.cpp
|
e4d626ea35b7a402388b524e2feafc81e6387697 |
|
02-Feb-2016 |
Lorenzo Colitti <lorenzo@google.com> |
Initial netd binder interface. In this change: 1. AIDL files for a new, android.net.INetd service, and corresponding implementation using generated code. For now the interface is just a prototype: it only has one trivial method. 2. Permission checking code to check for CONNECTIVITY_INTERNAL. 3. Add a Big Netd Lock and provide a wrapper that makes it easy to ensure that it is taken by every CommandListener command. Bug: 27239233 Change-Id: I448d0ac233edd0e351a7fe7f13901fb6871683a2
/system/netd/server/main.cpp
|
347f69312176a54250a35afdc712b044c466fc73 |
|
01-Nov-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Write pid file so we can tell when netd bounces. We clear the file early so people know it's died and rewrite after all the setup and flushing of data is done so people know when it's safe to repopulate the data. bug:18069270 Change-Id: I954cf43ff02f1d352015f128ef88b659e6d0f95a
/system/netd/server/main.cpp
|
f4f6c8de3f091be4b91a5a9d7f14e8882ec6d502 |
|
23-Jun-2014 |
Sreeram Ramachandran <sreeram@google.com> |
Refactor: Encapsulate permissions and interfaces into a Network class. Currently, there's a lot of logic in NetworkController surrounding events such as interface addition/removal, network creation/destruction and default network change, because these events are interwined. For example, adding an interface means also adding a corresponding default network rule if the interface is being added to the current default network. When we introduce VPNs into this mix, things will get hairy real quick for all this logic in NetworkController. In this refactor, we introduce an abstract base class Network which supports adding and removing interfaces. The main concrete implementation of this is PhysicalNetwork, which allows setting permissions and "default network" state. Since we've moved network permissions into the above class, and user permissions into NetworkController, PermissionsController is unused and has been removed. Also fix a few bugs in RouteController: + Use uidEnd correctly. + Check for all error cases in inet_pton. + Check the return value of android_fork_execvp() correctly. + The "return cmd1() && cmd2()" pattern is wrong. Rewrite that code. Also (non-functional changes): + Remove instantiations of RouteController. It has static methods only. + Reorder some blocks in CommandListener so that the most frequent commands are checked first. + Remove unused paramError() and clearNetworkPreference(). + Change all return codes to int (negative errno) wherever applicable. + Add WARN_UNUSED_RESULT everywhere. + Cleanup some style in RouteController and NetworkController. + Use uid_t instead of unsigned for user IDs. + Add clearer log messages at the source of failures. + Add a check for when fwmark bits are set without corresponding mask bits. Bug: 15409918 Change-Id: Ibba78b0850160f9f3d17d476f16331a6db0025d1
/system/netd/server/main.cpp
|
56afacf838d24cf8e54d2cf0d8ab9182ab704125 |
|
29-May-2014 |
Sreeram Ramachandran <sreeram@google.com> |
Turn on C++11 and make all warnings into errors. As a consequence: + Comment out the names of all unused parameters. + Remove all unused variables and functions. In server/Android.mk, there are a couple of non-trivial changes: + Use libcxx instead of stlport. This is needed to fix a bunch of errors due to specifying -std=c++11. + LOCAL_SHARED_LIBRARIES is sorted. Technically, the order in which libraries are listed has an effect on linking, but nobody should be doing such brittle things anyway. Change-Id: I0aff5b745e04609da23144d0e8be4c5694321b8b
/system/netd/server/main.cpp
|
f4cfad361175a7f9ccf4d41e76a9b289c3c3da22 |
|
21-May-2014 |
Sreeram Ramachandran <sreeram@google.com> |
Move netd_client into netd. Change-Id: Ie4b6b303225c93f2448a503d6ea9cebb552cbad5
/system/netd/server/main.cpp
|