Prototype of traffic controller
This is the prototype of the traffic controller service in netd module.
It start when netd controller service start and load eBPF maps and
programs to the kernel. Then it will attach the eBPF program to
corresponding cgroup to account the data usage information. During run
time, it is responsible for update socket tagging information with the
kernel, read the stats data for userspace usage, and garbage collect the
redundent map entries.
Test: bpf program attached to cgroup
Bug: 30950746
Change-Id: Ia7916a99a457fcff910725994a93a889ec6dd6be
diff --git a/server/Controllers.h b/server/Controllers.h
index 2a8fbde..a6a6e0f 100644
--- a/server/Controllers.h
+++ b/server/Controllers.h
@@ -31,6 +31,7 @@
#include "ResolverController.h"
#include "StrictController.h"
#include "TetherController.h"
+#include "TrafficController.h"
#include "WakeupController.h"
#include "XfrmController.h"
@@ -54,6 +55,7 @@
IptablesRestoreController iptablesRestoreCtrl;
WakeupController wakeupCtrl;
XfrmController xfrmCtrl;
+ TrafficController trafficCtrl;
void init();