Lines Matching refs:cmds
436 std::vector<std::string> cmds = { in setInterfaceSharedQuota() local
444 cmds.push_back(StringPrintf("-I %s -m quota2 ! --quota %" PRId64 " --name %s -j REJECT", in setInterfaceSharedQuota()
447 cmds.push_back("COMMIT\n"); in setInterfaceSharedQuota()
449 res |= iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in setInterfaceSharedQuota()
486 std::vector<std::string> cmds = { in removeInterfaceSharedQuota() local
494 cmds.push_back(StringPrintf("-D %s -m quota2 ! --quota %" PRIu64 " --name %s -j REJECT", in removeInterfaceSharedQuota()
497 cmds.push_back("COMMIT\n"); in removeInterfaceSharedQuota()
499 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in removeInterfaceSharedQuota()
548 std::vector<std::string> cmds = { in setInterfaceQuota() local
561 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in setInterfaceQuota()
606 std::vector<std::string> cmds = { in removeInterfaceQuota() local
617 const int res = iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in removeInterfaceQuota()