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 *);
DIptablesRestoreControllerTest.cpp162 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", nullptr)); in TEST_F()
167 EXPECT_EQ(0, con.execute(IptablesTarget::V6, "#Test\n", nullptr)); in TEST_F()
168 EXPECT_EQ(0, con.execute(IptablesTarget::V4, "#Test\n", nullptr)); in TEST_F()
170 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F()
182 IptablesTarget target = (IptablesTarget) (i % 3); in TEST_F()
195 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F()
209 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", nullptr)); in TEST_F()
243 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F()
247 EXPECT_EQ(-1, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F()
248 EXPECT_EQ(-1, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F()
[all …]
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,
DFirewallController.h76 static std::string makeCriticalCommands(IptablesTarget target, const char* chainName);
95 std::string makeUidRules(IptablesTarget target, const char* name, bool isAllowlist,
97 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()
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()
DIptablesRestoreController.h33 virtual int execute(const IptablesTarget target, const std::string& commands,
45 int execute(const IptablesTarget target, const std::string& commands,
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.h97 std::string makeDataSaverCommand(IptablesTarget target, bool enable);
130 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()
DFirewallController.cpp281 std::string FirewallController::makeCriticalCommands(IptablesTarget target, const char* chainName) { in makeCriticalCommands()
293 std::string FirewallController::makeUidRules(IptablesTarget target, const char* name, in makeUidRules()
DClatdController.h116 static int (*iptablesRestoreFunction)(IptablesTarget target, const std::string& commands);
DRouteController.h112 static int (*iptablesRestoreCommandFunction)(IptablesTarget, const std::string&,
DTetherController.h207 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, 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.cpp334 std::string BandwidthController::makeDataSaverCommand(IptablesTarget target, bool enable) { in makeDataSaverCommand()
DTetherController.cpp1014 for (const IptablesTarget target : {V4, V6}) { in getTetherStats()