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.cpp52 IptablesRestoreController con;
74 pid_t getIpRestorePid(const IptablesRestoreController::IptablesProcessType type) { in getIpRestorePid()
164 pid_t pid4 = getIpRestorePid(IptablesRestoreController::IPTABLES_PROCESS); in TEST_F()
165 pid_t pid6 = getIpRestorePid(IptablesRestoreController::IP6TABLES_PROCESS); in TEST_F()
175 EXPECT_EQ(pid4, getIpRestorePid(IptablesRestoreController::IPTABLES_PROCESS)); in TEST_F()
176 EXPECT_EQ(pid6, getIpRestorePid(IptablesRestoreController::IP6TABLES_PROCESS)); in TEST_F()
197 pid_t pid4 = getIpRestorePid(IptablesRestoreController::IPTABLES_PROCESS); in TEST_F()
198 pid_t pid6 = getIpRestorePid(IptablesRestoreController::IP6TABLES_PROCESS); in TEST_F()
210 EXPECT_NE(pid4, getIpRestorePid(IptablesRestoreController::IPTABLES_PROCESS)); in TEST_F()
211 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.bp125 "IptablesRestoreController.cpp",