Add a test for ENOBUFF case
Add a netd_integration_test to check that when a lot of sockets get closed
at the same time and ENOBUFF happens, there is no more spinning in
netlinkListener.
Test: run netd_integration_test
Bug: 112068616
Bug: 112145375
Change-Id: I5b8c2872ec7c4660d69ff3d58662233e45f75452
diff --git a/server/TrafficController.h b/server/TrafficController.h
index 6a9d071..f089351 100644
--- a/server/TrafficController.h
+++ b/server/TrafficController.h
@@ -114,6 +114,8 @@
int toggleUidOwnerMap(ChildChain chain, bool enable);
+ static netdutils::StatusOr<std::unique_ptr<NetlinkListenerInterface>> makeSkDestroyListener();
+
private:
/*
* mCookieTagMap: Store the corresponding tag and uid for a specific socket.