/system/netd/server/ |
D | Controllers.h | 65 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 *);
|
D | NetdConstants.h | 30 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,
|
D | IptablesBaseTest.h | 27 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,
|
D | IptablesRestoreControllerTest.cpp | 202 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 …]
|
D | FirewallController.h | 77 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);
|
D | IptablesBaseTest.cpp | 74 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()
|
D | IptablesRestoreController.h | 33 virtual int execute(const IptablesTarget target, const std::string& commands, 45 int execute(const IptablesTarget target, const std::string& commands,
|
D | NetdConstants.cpp | 37 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()
|
D | StrictController.h | 49 static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);
|
D | IdletimerController.h | 46 static int (*execIptablesRestore)(IptablesTarget, const std::string&);
|
D | FirewallControllerTest.cpp | 49 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()
|
D | BandwidthController.h | 91 std::string makeDataSaverCommand(IptablesTarget target, bool enable); 124 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *);
|
D | StrictControllerTest.cpp | 103 std::vector<std::pair<IptablesTarget, std::string>> expected = { in TEST_F()
|
D | Controllers.cpp | 114 std::set<std::string> Controllers::findExistingChildChains(const IptablesTarget target, in findExistingChildChains() 154 void Controllers::createChildChains(IptablesTarget target, const char* table, in createChildChains()
|
D | ControllersTest.cpp | 45 std::set<std::string> findExistingChildChains(IptablesTarget a, const char* b, const char*c) { in findExistingChildChains()
|
D | ClatdController.h | 105 static int (*iptablesRestoreFunction)(IptablesTarget target, const std::string& commands);
|
D | FirewallController.cpp | 288 std::string FirewallController::makeCriticalCommands(IptablesTarget target, const char* chainName) { in makeCriticalCommands() 300 std::string FirewallController::makeUidRules(IptablesTarget target, const char* name, in makeUidRules()
|
D | TetherController.h | 180 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *);
|
D | RouteController.h | 176 static int (*iptablesRestoreCommandFunction)(IptablesTarget, const std::string&,
|
D | IptablesRestoreController.cpp | 347 int IptablesRestoreController::execute(const IptablesTarget target, const std::string& command, in execute()
|
D | WakeupControllerTest.cpp | 56 MOCK_METHOD3(execute, int(const IptablesTarget target, const std::string& commands,
|
D | BandwidthController.cpp | 305 std::string BandwidthController::makeDataSaverCommand(IptablesTarget target, bool enable) { in makeDataSaverCommand()
|
D | TetherController.cpp | 913 for (const IptablesTarget target : {V4, V6}) { in getTetherStats()
|