Home
last modified time | relevance | path

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

/system/netd/server/
DIptablesRestoreControllerTest.cpp116 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 …]
DControllersTest.cpp73 { 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()
DFirewallControllerTest.cpp113 { 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()
DControllers.cpp112 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()
DBandwidthController.cpp282 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 …]
DFirewallController.cpp105 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()
DIdletimerController.cpp151 return execIptablesRestore(V4V6, Join(cmds, '\n')); in setDefaults()
184 return execIptablesRestore(V4V6, Join(cmds, '\n')); in modifyInterfaceIdletimer()
Doem_iptables_hook.cpp40 return (execIptablesRestore(V4V6, cmd) == 0); in oemCleanupHooks()
DStrictController.cpp155 return execIptablesRestore(V4V6, commands); in disableStrict()
197 return execIptablesRestore(V4V6, Join(commands, "\n")); in setUidCleartextPenalty()
DNetdConstants.h41 enum IptablesTarget { V4, V6, V4V6 }; enumerator
DStrictControllerTest.cpp104 { V4V6, commandsCommon }, in TEST_F()
DBandwidthControllerTest.cpp96 expected.push_back({ V4V6, expectedClean }); in expectSetupCommands()
98 expected.push_back({ V4V6, expectedFlush }); in expectSetupCommands()
100 expected.push_back({ V4V6, expectedAccounting }); in expectSetupCommands()
DIptablesRestoreController.cpp360 if (target == V4 || target == V4V6) { in execute()
363 if (target == V6 || target == V4V6) { in execute()
DIptablesBaseTest.cpp102 expected.push_back({ V4V6, cmd }); in expectIptablesRestoreCommands()
DWakeupControllerTest.cpp293 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()
DWakeupController.cpp218 auto rv = mIptables->execute(V4V6, cmd, &out); in execIptables()
DTetherControllerTest.cpp92 { V4V6, "*filter\n"
DTetherController.cpp437 res = iptablesRestoreFunction(V4V6, defaultCommands, nullptr); in setupIptablesHooks()
DRouteController.cpp449 if (RouteController::iptablesRestoreCommandFunction(V4V6, "mangle", cmd, nullptr) != 0) { in modifyIncomingPacketMark()