Home
last modified time | relevance | path

Searched refs:V4V6 (Results 1 – 17 of 17) sorted by relevance

/system/netd/server/
DIptablesRestoreControllerTest.cpp155 int ret = con.execute(V4V6, Join(createCommands, "\n"), nullptr); in createTestChain()
168 con.execute(V4V6, Join(deleteCommands, "\n"), nullptr); in deleteTestChain()
203 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", nullptr)); in TEST_F()
211 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F()
236 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", &output)); in TEST_F()
250 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, "#Test\n", nullptr)); in TEST_F()
284 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F()
288 EXPECT_EQ(-1, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F()
289 EXPECT_EQ(-1, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F()
292 EXPECT_EQ(0, con.execute(IptablesTarget::V4V6, commandString, &output)); in TEST_F()
[all …]
DControllersTest.cpp73 {V4V6, in TEST_F()
82 {V4V6, in TEST_F()
95 {V4V6, in TEST_F()
106 {V4V6, in TEST_F()
113 {V4V6, in TEST_F()
DControllers.cpp116 if (target == V4V6) { in findExistingChildChains()
224 createChildChains(V4V6, "filter", "INPUT", FILTER_INPUT, true); in initChildChains()
225 createChildChains(V4V6, "filter", "FORWARD", FILTER_FORWARD, true); in initChildChains()
226 createChildChains(V4V6, "raw", "PREROUTING", RAW_PREROUTING, true); in initChildChains()
227 createChildChains(V4V6, "mangle", "FORWARD", MANGLE_FORWARD, true); in initChildChains()
228 createChildChains(V4V6, "mangle", "INPUT", MANGLE_INPUT, true); in initChildChains()
DFirewallController.cpp89 res = execIptablesRestore(V4V6, command.c_str()); in setFirewallType()
107 return (execIptablesRestore(V4V6, command.c_str()) == 0) ? 0 : -EREMOTEIO; in flushRules()
152 return (execIptablesRestore(V4V6, command) == 0) ? 0 : -EREMOTEIO; in setInterfaceRule()
DBandwidthController.cpp270 iptablesRestoreFunction(V4V6, commands, nullptr); in flushCleanTables()
289 return iptablesRestoreFunction(V4V6, commands, nullptr); in enableBandwidthControl()
354 res |= iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in setInterfaceSharedQuota()
404 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in removeInterfaceSharedQuota()
466 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in setInterfaceQuota()
522 const int res = iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in removeInterfaceQuota()
568 return iptablesRestoreFunction(V4V6, alertQuotaCmd, nullptr); in runIptablesAlertCmd()
683 res = iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr); in setCostlyAlert()
713 if (iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr) != 0) { in removeCostlyAlert()
763 iptablesRestoreFunction(V4V6, Join(clearCommands, '\n'), nullptr); in parseAndFlushCostlyTables()
DStrictController.cpp155 return (execIptablesRestore(V4V6, commands) == 0) ? 0 : -EREMOTEIO; in resetChains()
197 return (execIptablesRestore(V4V6, Join(commands, "\n")) == 0) ? 0 : -EREMOTEIO; in setUidCleartextPenalty()
DIdletimerController.cpp160 return (execIptablesRestore(V4V6, Join(cmds, '\n')) == 0) ? 0 : -EREMOTEIO; in modifyInterfaceIdletimer()
DStrictControllerTest.cpp104 { V4V6, commandsCommon }, in TEST_F()
DNetdConstants.h32 enum IptablesTarget { V4, V6, V4V6 }; enumerator
DBandwidthControllerTest.cpp95 expected.push_back({ V4V6, expectedClean }); in expectSetupCommands()
97 expected.push_back({ V4V6, expectedFlush }); in expectSetupCommands()
99 expected.push_back({ V4V6, expectedAccounting }); in expectSetupCommands()
DIptablesRestoreController.cpp342 if (target == V4 || target == V4V6) { in execute()
345 if (target == V6 || target == V4V6) { in execute()
DIptablesBaseTest.cpp102 expected.push_back({ V4V6, cmd }); in expectIptablesRestoreCommands()
DTetherControllerTest.cpp100 {V4V6,
107 {V4V6,
DWakeupControllerTest.cpp295 EXPECT_CALL(mIptables, execute(V4V6, kExpected, _)).WillOnce(Return(0)); in TEST_F()
310 EXPECT_CALL(mIptables, execute(V4V6, kExpected, _)).WillOnce(Return(0)); in TEST_F()
DWakeupController.cpp218 auto rv = mIptables->execute(V4V6, cmd, &out); in execIptables()
DTetherController.cpp521 res = iptablesRestoreFunction(V4V6, defaultCommands, nullptr); in setupIptablesHooks()
620 return iptablesRestoreFunction(V4V6, cmds, nullptr); in setTetherGlobalAlertRule()
DRouteController.cpp494 if (RouteController::iptablesRestoreCommandFunction(V4V6, "mangle", cmd, nullptr) != 0) { in modifyIncomingPacketMark()