Searched refs:iptablesRestoreFunction (Results 1 – 6 of 6) sorted by relevance
/aosp_15_r20/system/netd/server/ |
H A D | BandwidthController.cpp | 67 auto BandwidthController::iptablesRestoreFunction = execIptablesRestoreWithOutput; member in BandwidthController 268 iptablesRestoreFunction(V4V6, commands, nullptr); in flushCleanTables() 287 return iptablesRestoreFunction(V4V6, commands, nullptr); in enableBandwidthControl() 306 int ret = iptablesRestoreFunction(V4, makeDataSaverCommand(V4, enable), nullptr); in enableDataSaver() 307 ret |= iptablesRestoreFunction(V6, makeDataSaverCommand(V6, enable), nullptr); in enableDataSaver() 346 res |= iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in setInterfaceSharedQuota() 396 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in removeInterfaceSharedQuota() 452 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in setInterfaceQuota() 508 const int res = iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in removeInterfaceQuota() 554 return iptablesRestoreFunction(V4V6, alertQuotaCmd, nullptr); in runIptablesAlertCmd() [all …]
|
H A D | TetherController.cpp | 130 auto TetherController::iptablesRestoreFunction = execIptablesRestoreWithOutput; member in android::net::TetherController 516 res = iptablesRestoreFunction(V4, mssRewriteCommand, nullptr); in setupIptablesHooks() 521 res = iptablesRestoreFunction(V4V6, defaultCommands, nullptr); in setupIptablesHooks() 550 int res = iptablesRestoreFunction(V4, v4Cmd, nullptr); in setDefaults() 555 res = iptablesRestoreFunction(V6, v6Cmd, nullptr); in setDefaults() 588 if (iptablesRestoreFunction(V4, Join(v4Cmds, '\n'), nullptr) || setupIPv6CountersChain() || in enableNat() 620 return iptablesRestoreFunction(V4V6, cmds, nullptr); in setTetherGlobalAlertRule() 637 return iptablesRestoreFunction(V6, v6Cmds, nullptr); in setupIPv6CountersChain() 721 if (iptablesRestoreFunction(V6, rpfilterCmd, nullptr) == -1 && add) { in setForwardRules() 765 if (iptablesRestoreFunction(V4, Join(v4, '\n'), nullptr) == -1 || in setForwardRules() [all …]
|
H A D | BandwidthController.h | 116 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
|
H A D | TetherController.h | 180 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
|
H A D | TetherControllerTest.cpp | 51 TetherController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in TetherControllerTest()
|
H A D | BandwidthControllerTest.cpp | 55 BandwidthController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in BandwidthControllerTest()
|