Searched refs:iptablesRestoreFunction (Results 1 – 9 of 9) sorted by relevance
/system/netd/server/ |
D | BandwidthController.cpp | 70 auto BandwidthController::iptablesRestoreFunction = execIptablesRestoreWithOutput; member in BandwidthController 277 iptablesRestoreFunction(V4V6, commands, nullptr); in flushCleanTables() 296 return iptablesRestoreFunction(V4V6, commands, nullptr); in enableBandwidthControl() 321 int ret = iptablesRestoreFunction(V4, makeDataSaverCommand(V4, enable), nullptr); in enableDataSaver() 322 ret |= iptablesRestoreFunction(V6, makeDataSaverCommand(V6, enable), nullptr); in enableDataSaver() 386 res |= iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in setInterfaceSharedQuota() 436 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in removeInterfaceSharedQuota() 498 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in setInterfaceQuota() 554 const int res = iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in removeInterfaceQuota() 600 return iptablesRestoreFunction(V4V6, alertQuotaCmd, nullptr); in runIptablesAlertCmd() [all …]
|
D | TetherController.cpp | 130 auto TetherController::iptablesRestoreFunction = execIptablesRestoreWithOutput; member in android::net::TetherController 517 res = iptablesRestoreFunction(V4, mssRewriteCommand, nullptr); in setupIptablesHooks() 522 res = iptablesRestoreFunction(V4V6, defaultCommands, nullptr); in setupIptablesHooks() 551 int res = iptablesRestoreFunction(V4, v4Cmd, nullptr); in setDefaults() 556 res = iptablesRestoreFunction(V6, v6Cmd, nullptr); in setDefaults() 589 if (iptablesRestoreFunction(V4, Join(v4Cmds, '\n'), nullptr) || setupIPv6CountersChain() || in enableNat() 621 return iptablesRestoreFunction(V4V6, cmds, nullptr); in setTetherGlobalAlertRule() 638 return iptablesRestoreFunction(V6, v6Cmds, nullptr); in setupIPv6CountersChain() 722 if (iptablesRestoreFunction(V6, rpfilterCmd, nullptr) == -1 && add) { in setForwardRules() 766 if (iptablesRestoreFunction(V4, Join(v4, '\n'), nullptr) == -1 || in setForwardRules() [all …]
|
D | ClatdController.h | 105 static int (*iptablesRestoreFunction)(IptablesTarget target, const std::string& commands); variable
|
D | BandwidthController.h | 124 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
|
D | TetherController.h | 180 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
|
D | ClatdControllerTest.cpp | 65 ClatdController::iptablesRestoreFunction = fakeExecIptablesRestore; in ClatdControllerTest()
|
D | ClatdController.cpp | 331 iptablesRestoreFunction(V6, cmd); in setIptablesDropRule() 666 auto ClatdController::iptablesRestoreFunction = execIptablesRestore; member in android::net::ClatdController
|
D | TetherControllerTest.cpp | 51 TetherController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in TetherControllerTest()
|
D | BandwidthControllerTest.cpp | 56 BandwidthController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in BandwidthControllerTest()
|