Searched refs:iptablesRestoreFunction (Results 1 – 9 of 9) sorted by relevance
/system/netd/server/ |
D | BandwidthController.cpp | 71 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 …]
|
D | TetherController.cpp | 137 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 …]
|
D | ClatdController.h | 114 static int (*iptablesRestoreFunction)(IptablesTarget target, const std::string& commands); variable
|
D | BandwidthController.h | 130 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
|
D | TetherController.h | 169 static int (*iptablesRestoreFunction)(IptablesTarget, const std::string&, std::string *); variable
|
D | ClatdControllerTest.cpp | 65 ClatdController::iptablesRestoreFunction = fakeExecIptablesRestore; in ClatdControllerTest()
|
D | ClatdController.cpp | 326 iptablesRestoreFunction(V6, cmd); in maybeSetIptablesDropRule() 615 auto ClatdController::iptablesRestoreFunction = execIptablesRestore; member in android::net::ClatdController
|
D | TetherControllerTest.cpp | 48 TetherController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in TetherControllerTest()
|
D | BandwidthControllerTest.cpp | 121 BandwidthController::iptablesRestoreFunction = fakeExecIptablesRestoreWithOutput; in BandwidthControllerTest()
|