Home
last modified time | relevance | path

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

/system/netd/server/
DBandwidthController.cpp71 auto BandwidthController::iptablesRestoreFunction = execIptablesRestoreWithOutput; member in BandwidthController
286 iptablesRestoreFunction(V4V6, commands, nullptr); in flushCleanTables()
305 return iptablesRestoreFunction(V4V6, commands, nullptr); in enableBandwidthControl()
330 int ret = iptablesRestoreFunction(V4, makeDataSaverCommand(V4, enable), nullptr); in enableDataSaver()
331 ret |= iptablesRestoreFunction(V6, makeDataSaverCommand(V6, enable), nullptr); in enableDataSaver()
391 return iptablesRestoreFunction(V4V6, cmd, nullptr); in manipulateSpecialApps()
430 res |= iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in setInterfaceSharedQuota()
481 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in removeInterfaceSharedQuota()
544 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in setInterfaceQuota()
600 const int res = iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in removeInterfaceQuota()
[all …]
DTetherController.cpp137 auto TetherController::iptablesRestoreFunction = execIptablesRestoreWithOutput; member in android::net::TetherController
494 res = iptablesRestoreFunction(V4, mssRewriteCommand, nullptr); in setupIptablesHooks()
499 res = iptablesRestoreFunction(V4V6, defaultCommands, nullptr); in setupIptablesHooks()
528 int res = iptablesRestoreFunction(V4, v4Cmd, nullptr); in setDefaults()
533 res = iptablesRestoreFunction(V6, v6Cmd, nullptr); in setDefaults()
566 if (iptablesRestoreFunction(V4, Join(v4Cmds, '\n'), nullptr) || setupIPv6CountersChain() || in enableNat()
598 return iptablesRestoreFunction(V4V6, cmds, nullptr); in setTetherGlobalAlertRule()
615 return iptablesRestoreFunction(V6, v6Cmds, nullptr); in setupIPv6CountersChain()
699 if (iptablesRestoreFunction(V6, rpfilterCmd, nullptr) == -1 && add) { in setForwardRules()
743 if (iptablesRestoreFunction(V4, Join(v4, '\n'), nullptr) == -1 || in setForwardRules()
[all …]
DClatdController.h114 static int (*iptablesRestoreFunction)(IptablesTarget target, const std::string& commands); variable
DBandwidthController.h130 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
DTetherController.h169 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
DClatdControllerTest.cpp65 ClatdController::iptablesRestoreFunction = fakeExecIptablesRestore; in ClatdControllerTest()
DClatdController.cpp326 iptablesRestoreFunction(V6, cmd); in maybeSetIptablesDropRule()
615 auto ClatdController::iptablesRestoreFunction = execIptablesRestore; member in android::net::ClatdController
DTetherControllerTest.cpp48 TetherController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in TetherControllerTest()
DBandwidthControllerTest.cpp121 BandwidthController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in BandwidthControllerTest()