Home
last modified time | relevance | path

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

/system/netd/server/
DBandwidthController.cpp69 auto BandwidthController::iptablesRestoreFunction = execIptablesRestoreWithOutput; member in BandwidthController
282 iptablesRestoreFunction(V4V6, commands, nullptr); in flushCleanTables()
310 return iptablesRestoreFunction(V4V6, commands, nullptr); in enableBandwidthControl()
335 int ret = iptablesRestoreFunction(V4, makeDataSaverCommand(V4, enable), nullptr); in enableDataSaver()
336 ret |= iptablesRestoreFunction(V6, makeDataSaverCommand(V6, enable), nullptr); in enableDataSaver()
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()
[all …]
DTetherController.cpp117 auto TetherController::iptablesRestoreFunction = execIptablesRestoreWithOutput; member in android::net::TetherController
432 res = iptablesRestoreFunction(V4, mssRewriteCommand, nullptr); in setupIptablesHooks()
437 res = iptablesRestoreFunction(V4V6, defaultCommands, nullptr); in setupIptablesHooks()
465 int res = iptablesRestoreFunction(V4, v4Cmd, nullptr); in setDefaults()
470 res = iptablesRestoreFunction(V6, v6Cmd, nullptr); in setDefaults()
505 if (iptablesRestoreFunction(V4, Join(v4Cmds, '\n'), nullptr) || in enableNat()
544 return iptablesRestoreFunction(V6, Join(v6Cmds, '\n'), nullptr); in setupIPv6CountersChain()
628 if (iptablesRestoreFunction(V6, rpfilterCmd, nullptr) == -1 && add) { in setForwardRules()
666 if (iptablesRestoreFunction(V4, Join(v4, '\n'), nullptr) == -1 || in setForwardRules()
667 (add && iptablesRestoreFunction(V6, Join(v6, '\n'), nullptr) == -1)) { in setForwardRules()
[all …]
DBandwidthController.h123 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
DTetherController.h154 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
DTetherControllerTest.cpp48 TetherController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in TetherControllerTest()
DBandwidthControllerTest.cpp58 BandwidthController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in BandwidthControllerTest()