ClatdController - Add simple dump output for trackers and ebpf clat map
(heavily based on work by Lorenzo Colitti)
Test: atest netd_unit_test, and manually via 'adb shell dumpsys netd'
Bug: 65674744
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I0565a0c78bf655d099d68d3462b8eb7cf4e34483
diff --git a/server/ClatdController.h b/server/ClatdController.h
index 5e97b73..cd5ad14 100644
--- a/server/ClatdController.h
+++ b/server/ClatdController.h
@@ -24,8 +24,11 @@
#include <linux/if.h>
#include <netinet/in.h>
+#include <android-base/thread_annotations.h>
+
#include "Fwmark.h"
#include "NetdConstants.h"
+#include "netdutils/DumpWriter.h"
namespace android {
namespace net {
@@ -41,6 +44,8 @@
std::string* v6Addr);
int stopClatd(const std::string& interface);
+ void dump(netdutils::DumpWriter& dw) EXCLUDES(mutex);
+
std::mutex mutex;
private: