Home
last modified time | relevance | path

Searched refs:iptablesRestoreFunction (Results 1 – 9 of 9) sorted by relevance

/system/netd/server/
DBandwidthController.cpp70 auto BandwidthController::iptablesRestoreFunction = execIptablesRestoreWithOutput; member in BandwidthController
306 iptablesRestoreFunction(V4V6, commands, nullptr); in flushCleanTables()
325 return iptablesRestoreFunction(V4V6, commands, nullptr); in enableBandwidthControl()
350 int ret = iptablesRestoreFunction(V4, makeDataSaverCommand(V4, enable), nullptr); in enableDataSaver()
351 ret |= iptablesRestoreFunction(V6, makeDataSaverCommand(V6, enable), nullptr); in enableDataSaver()
411 return iptablesRestoreFunction(V4V6, cmd, nullptr); in manipulateSpecialApps()
449 res |= iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in setInterfaceSharedQuota()
499 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in removeInterfaceSharedQuota()
561 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in setInterfaceQuota()
617 const int res = iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in removeInterfaceQuota()
[all …]
DTetherController.cpp137 auto TetherController::iptablesRestoreFunction = execIptablesRestoreWithOutput; member in android::net::TetherController
544 res = iptablesRestoreFunction(V4, mssRewriteCommand, nullptr); in setupIptablesHooks()
549 res = iptablesRestoreFunction(V4V6, defaultCommands, nullptr); in setupIptablesHooks()
578 int res = iptablesRestoreFunction(V4, v4Cmd, nullptr); in setDefaults()
583 res = iptablesRestoreFunction(V6, v6Cmd, nullptr); in setDefaults()
617 if (iptablesRestoreFunction(V4, Join(v4Cmds, '\n'), nullptr) || setupIPv6CountersChain() || in enableNat()
650 return iptablesRestoreFunction(V4V6, cmds, nullptr); in setTetherGlobalAlertRule()
667 return iptablesRestoreFunction(V6, v6Cmds, nullptr); in setupIPv6CountersChain()
751 if (iptablesRestoreFunction(V6, rpfilterCmd, nullptr) == -1 && add) { in setForwardRules()
795 if (iptablesRestoreFunction(V4, Join(v4, '\n'), nullptr) == -1 || in setForwardRules()
[all …]
DClatdController.h116 static int (*iptablesRestoreFunction)(IptablesTarget target, const std::string& commands); variable
DBandwidthController.h130 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
DClatdControllerTest.cpp65 ClatdController::iptablesRestoreFunction = fakeExecIptablesRestore; in ClatdControllerTest()
DTetherController.h207 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
DClatdController.cpp371 iptablesRestoreFunction(V6, cmd); in setIptablesDropRule()
708 auto ClatdController::iptablesRestoreFunction = execIptablesRestore; member in android::net::ClatdController
DBandwidthControllerTest.cpp123 BandwidthController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in BandwidthControllerTest()
DTetherControllerTest.cpp66 TetherController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in TetherControllerTest()