Lines Matching refs:cmds
373 std::vector<std::string> cmds = { in setInterfaceSharedQuota() local
381 cmds.push_back(StringPrintf("-I %s -m quota2 ! --quota %" PRId64 " --name %s -j REJECT", in setInterfaceSharedQuota()
384 cmds.push_back("COMMIT\n"); in setInterfaceSharedQuota()
386 res |= iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in setInterfaceSharedQuota()
423 std::vector<std::string> cmds = { in removeInterfaceSharedQuota() local
431 cmds.push_back(StringPrintf("-D %s -m quota2 ! --quota %" PRIu64 " --name %s -j REJECT", in removeInterfaceSharedQuota()
434 cmds.push_back("COMMIT\n"); in removeInterfaceSharedQuota()
436 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in removeInterfaceSharedQuota()
485 std::vector<std::string> cmds = { in setInterfaceQuota() local
498 if (iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr) != 0) { in setInterfaceQuota()
543 std::vector<std::string> cmds = { in removeInterfaceQuota() local
554 const int res = iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in removeInterfaceQuota()