/system/netd/server/ |
D | IptablesRestoreControllerTest.cpp | 116 int ret = con.execute(V4V6, Join(createCommands, "\n"), nullptr); in createTestChain() 129 con.execute(V4V6, Join(deleteCommands, "\n"), nullptr); in deleteTestChain() 164 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", nullptr)); in TEST_F() 172 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F() 197 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F() 211 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", nullptr)); in TEST_F() 245 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F() 249 EXPECT_EQ(-1, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F() 250 EXPECT_EQ(-1, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F() 253 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F() [all …]
|
D | ControllersTest.cpp | 73 { V4V6, "*filter\n" in TEST_F() 82 { V4V6, "*filter\n" in TEST_F() 95 { V4V6, "*raw\n" in TEST_F() 106 { V4V6, "*mangle\n" in TEST_F() 113 { V4V6, "*mangle\n" in TEST_F()
|
D | FirewallControllerTest.cpp | 113 { V4V6, "*filter\n-D fw_standby -m owner --uid-owner 12345 -j DROP\nCOMMIT\n" } in TEST_F() 119 { V4V6, "*filter\n-A fw_standby -m owner --uid-owner 12345 -j DROP\nCOMMIT\n" } in TEST_F() 127 { V4V6, "*filter\n-I fw_dozable -m owner --uid-owner 54321 -j RETURN\nCOMMIT\n" } in TEST_F() 133 { V4V6, "*filter\n-D fw_dozable -m owner --uid-owner 54321 -j RETURN\nCOMMIT\n" } in TEST_F() 141 { V4V6, "*filter\n" in TEST_F() 150 { V4V6, "*filter\n" in TEST_F()
|
D | Controllers.cpp | 112 if (target == V4V6) { in findExistingChildChains() 221 createChildChains(V4V6, "filter", "INPUT", FILTER_INPUT, true); in initChildChains() 222 createChildChains(V4V6, "filter", "FORWARD", FILTER_FORWARD, true); in initChildChains() 223 createChildChains(V4V6, "raw", "PREROUTING", RAW_PREROUTING, true); in initChildChains() 224 createChildChains(V4V6, "mangle", "FORWARD", MANGLE_FORWARD, true); in initChildChains() 225 createChildChains(V4V6, "mangle", "INPUT", MANGLE_INPUT, true); in initChildChains()
|
D | BandwidthController.cpp | 282 iptablesRestoreFunction(V4V6, commands, nullptr); in flushCleanTables() 310 return iptablesRestoreFunction(V4V6, commands, nullptr); in enableBandwidthControl() 369 return iptablesRestoreFunction(V4V6, cmd, nullptr); in manipulateSpecialApps() 408 res |= iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in setInterfaceSharedQuota() 459 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in removeInterfaceSharedQuota() 525 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in setInterfaceQuota() 582 const int res = iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in removeInterfaceQuota() 622 return iptablesRestoreFunction(V4V6, alertQuotaCmd, nullptr); in runIptablesAlertCmd() 633 return iptablesRestoreFunction(V4V6, alertQuotaCmd, nullptr); in runIptablesAlertFwdCmd() 795 res = iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr); in setCostlyAlert() [all …]
|
D | FirewallController.cpp | 105 res = execIptablesRestore(V4V6, command.c_str()); in enableFirewall() 126 return execIptablesRestore(V4V6, command.c_str()); in disableFirewall() 156 return execIptablesRestore(V4V6, command); in enableChildChains() 195 return execIptablesRestore(V4V6, command); in setInterfaceRule() 256 return execIptablesRestore(V4V6, command); in setUidRule()
|
D | IdletimerController.cpp | 151 return execIptablesRestore(V4V6, Join(cmds, '\n')); in setDefaults() 184 return execIptablesRestore(V4V6, Join(cmds, '\n')); in modifyInterfaceIdletimer()
|
D | oem_iptables_hook.cpp | 40 return (execIptablesRestore(V4V6, cmd) == 0); in oemCleanupHooks()
|
D | StrictController.cpp | 155 return execIptablesRestore(V4V6, commands); in disableStrict() 197 return execIptablesRestore(V4V6, Join(commands, "\n")); in setUidCleartextPenalty()
|
D | NetdConstants.h | 41 enum IptablesTarget { V4, V6, V4V6 }; enumerator
|
D | StrictControllerTest.cpp | 104 { V4V6, commandsCommon }, in TEST_F()
|
D | BandwidthControllerTest.cpp | 96 expected.push_back({ V4V6, expectedClean }); in expectSetupCommands() 98 expected.push_back({ V4V6, expectedFlush }); in expectSetupCommands() 100 expected.push_back({ V4V6, expectedAccounting }); in expectSetupCommands()
|
D | IptablesRestoreController.cpp | 360 if (target == V4 || target == V4V6) { in execute() 363 if (target == V6 || target == V4V6) { in execute()
|
D | IptablesBaseTest.cpp | 102 expected.push_back({ V4V6, cmd }); in expectIptablesRestoreCommands()
|
D | WakeupControllerTest.cpp | 293 EXPECT_CALL(mIptables, execute(V4V6, kExpected, _)).WillOnce(Return(0)); in TEST_F() 306 EXPECT_CALL(mIptables, execute(V4V6, kExpected, _)).WillOnce(Return(0)); in TEST_F()
|
D | WakeupController.cpp | 218 auto rv = mIptables->execute(V4V6, cmd, &out); in execIptables()
|
D | TetherControllerTest.cpp | 92 { V4V6, "*filter\n"
|
D | TetherController.cpp | 437 res = iptablesRestoreFunction(V4V6, defaultCommands, nullptr); in setupIptablesHooks()
|
D | RouteController.cpp | 449 if (RouteController::iptablesRestoreCommandFunction(V4V6, "mangle", cmd, nullptr) != 0) { in modifyIncomingPacketMark()
|