Home
last modified time | relevance | path

Searched refs:IptablesRestoreController (Results 1 – 5 of 5) sorted by relevance

/system/netd/server/
DIptablesRestoreController.cpp42 int IptablesRestoreController::MAX_RETRIES = 50;
43 int IptablesRestoreController::POLL_TIMEOUT_MS = 100;
119 IptablesRestoreController::IptablesRestoreController() { in IptablesRestoreController() function in IptablesRestoreController
123 IptablesRestoreController::~IptablesRestoreController() { in ~IptablesRestoreController()
126 void IptablesRestoreController::Init() { in Init()
136 IptablesProcess* IptablesRestoreController::forkAndExec(const IptablesProcessType type) { in forkAndExec()
206 int IptablesRestoreController::sendCommand(const IptablesProcessType type, in sendCommand()
228 IptablesProcess *newProcess = IptablesRestoreController::forkAndExec(type); in sendCommand()
255 void IptablesRestoreController::maybeLogStderr(const std::unique_ptr<IptablesProcess> &process, in maybeLogStderr()
271 bool IptablesRestoreController::drainAndWaitForAck(const std::unique_ptr<IptablesProcess> &process, in drainAndWaitForAck()
[all …]
DIptablesRestoreControllerTest.cpp59 IptablesRestoreController con;
81 pid_t getIpRestorePid(const IptablesRestoreController::IptablesProcessType type) { in getIpRestorePid()
204 pid_t pid4 = getIpRestorePid(IptablesRestoreController::IPTABLES_PROCESS); in TEST_F()
205 pid_t pid6 = getIpRestorePid(IptablesRestoreController::IP6TABLES_PROCESS); in TEST_F()
215 EXPECT_EQ(pid4, getIpRestorePid(IptablesRestoreController::IPTABLES_PROCESS)); in TEST_F()
216 EXPECT_EQ(pid6, getIpRestorePid(IptablesRestoreController::IP6TABLES_PROCESS)); in TEST_F()
237 pid_t pid4 = getIpRestorePid(IptablesRestoreController::IPTABLES_PROCESS); in TEST_F()
238 pid_t pid6 = getIpRestorePid(IptablesRestoreController::IP6TABLES_PROCESS); in TEST_F()
250 EXPECT_NE(pid4, getIpRestorePid(IptablesRestoreController::IPTABLES_PROCESS)); in TEST_F()
251 EXPECT_NE(pid6, getIpRestorePid(IptablesRestoreController::IP6TABLES_PROCESS)); in TEST_F()
[all …]
DIptablesRestoreController.h37 class IptablesRestoreController final : public IptablesRestoreInterface {
41 IptablesRestoreController();
43 ~IptablesRestoreController() override;
DControllers.h53 IptablesRestoreController iptablesRestoreCtrl;
DAndroid.bp198 "IptablesRestoreController.cpp",