Home
last modified time | relevance | path

Searched refs:IptablesTarget (Results 1 – 23 of 23) sorted by relevance

/system/netd/server/
DControllers.h65 static std::set<std::string> findExistingChildChains(const IptablesTarget target,
68 static void createChildChains(IptablesTarget target, const char* table, const char* parentChain,
70 static int (*execIptablesRestore)(IptablesTarget, const std::string&);
71 static int (*execIptablesRestoreWithOutput)(IptablesTarget, const std::string&, std::string *);
DNetdConstants.h30 enum IptablesTarget { V4, V6, V4V6 }; enum
32 int execIptablesRestore(IptablesTarget target, const std::string& commands);
33 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands,
35 int execIptablesRestoreCommand(IptablesTarget target, const std::string& table,
DIptablesBaseTest.h27 typedef std::vector<std::pair<IptablesTarget, std::string>> ExpectedIptablesCommands;
31 static int fakeExecIptablesRestore(IptablesTarget target, const std::string& commands);
32 static int fakeExecIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands,
34 static int fakeExecIptablesRestoreCommand(IptablesTarget target, const std::string& table,
DIptablesRestoreControllerTest.cpp202 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", nullptr)); in TEST_F()
207 EXPECT_EQ(0, con.execute(IptablesTarget::V6, "#Test\n", nullptr)); in TEST_F()
208 EXPECT_EQ(0, con.execute(IptablesTarget::V4, "#Test\n", nullptr)); in TEST_F()
210 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F()
222 IptablesTarget target = (IptablesTarget) (i % 3); in TEST_F()
235 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F()
249 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", nullptr)); in TEST_F()
283 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F()
287 EXPECT_EQ(-1, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F()
288 EXPECT_EQ(-1, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F()
[all …]
DFirewallController.h77 static std::string makeCriticalCommands(IptablesTarget target, const char* chainName);
97 std::string makeUidRules(IptablesTarget target, const char* name, bool isAllowlist,
99 static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);
DIptablesBaseTest.cpp74 int IptablesBaseTest::fakeExecIptablesRestoreWithOutput(IptablesTarget target, in fakeExecIptablesRestoreWithOutput()
87 int IptablesBaseTest::fakeExecIptablesRestore(IptablesTarget target, const std::string& commands) { in fakeExecIptablesRestore()
91 int IptablesBaseTest::fakeExecIptablesRestoreCommand(IptablesTarget target, in fakeExecIptablesRestoreCommand()
DIptablesRestoreController.h33 virtual int execute(const IptablesTarget target, const std::string& commands,
45 int execute(const IptablesTarget target, const std::string& commands,
DNetdConstants.cpp37 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands, in execIptablesRestoreWithOutput()
42 int execIptablesRestore(IptablesTarget target, const std::string& commands) { in execIptablesRestore()
46 int execIptablesRestoreCommand(IptablesTarget target, const std::string& table, in execIptablesRestoreCommand()
DStrictController.h49 static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);
DIdletimerController.h46 static int (*execIptablesRestore)(IptablesTarget, const std::string&);
DFirewallControllerTest.cpp49 std::string makeUidRules(IptablesTarget a, const char* b, bool c, in makeUidRules()
88 std::vector<std::pair<IptablesTarget, std::string>> expectedRestoreCommands = { in TEST_F()
105 std::vector<std::pair<IptablesTarget, std::string>> expectedRestoreCommands = { in TEST_F()
DBandwidthController.h91 std::string makeDataSaverCommand(IptablesTarget target, bool enable);
124 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *);
DStrictControllerTest.cpp103 std::vector<std::pair<IptablesTarget, std::string>> expected = { in TEST_F()
DControllers.cpp114 std::set<std::string> Controllers::findExistingChildChains(const IptablesTarget target, in findExistingChildChains()
154 void Controllers::createChildChains(IptablesTarget target, const char* table, in createChildChains()
DControllersTest.cpp45 std::set<std::string> findExistingChildChains(IptablesTarget a, const char* b, const char*c) { in findExistingChildChains()
DClatdController.h105 static int (*iptablesRestoreFunction)(IptablesTarget target, const std::string& commands);
DFirewallController.cpp288 std::string FirewallController::makeCriticalCommands(IptablesTarget target, const char* chainName) { in makeCriticalCommands()
300 std::string FirewallController::makeUidRules(IptablesTarget target, const char* name, in makeUidRules()
DTetherController.h180 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *);
DRouteController.h176 static int (*iptablesRestoreCommandFunction)(IptablesTarget, const std::string&,
DIptablesRestoreController.cpp347 int IptablesRestoreController::execute(const IptablesTarget target, const std::string& command, in execute()
DWakeupControllerTest.cpp56 MOCK_METHOD3(execute, int(const IptablesTarget target, const std::string& commands,
DBandwidthController.cpp305 std::string BandwidthController::makeDataSaverCommand(IptablesTarget target, bool enable) { in makeDataSaverCommand()
DTetherController.cpp913 for (const IptablesTarget target : {V4, V6}) { in getTetherStats()