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: If8e5ddcd2d29271e2f63a3338a3daf83e7afccdc
diff --git a/server/main.cpp b/server/main.cpp
index da611cf..ae3a71a 100644
--- a/server/main.cpp
+++ b/server/main.cpp
@@ -99,7 +99,7 @@
exit(1);
}
- FwmarkServer fwmarkServer(&gCtls->netCtrl);
+ FwmarkServer fwmarkServer(&gCtls->netCtrl, &gCtls->eventReporter);
if (fwmarkServer.startListener()) {
ALOGE("Unable to start FwmarkServer (%s)", strerror(errno));
exit(1);