Lines Matching refs:res

415     int res = 0;  in setInterfaceSharedQuota()  local
449 res |= iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in setInterfaceSharedQuota()
450 if (res) { in setInterfaceSharedQuota()
460 res |= updateQuota(cost, maxBytes); in setInterfaceSharedQuota()
461 if (res) { in setInterfaceSharedQuota()
504 int res = 0; in removeInterfaceSharedQuota() local
509 res = removeSharedAlert(); in removeInterfaceSharedQuota()
510 if (res == 0) { in removeInterfaceSharedQuota()
516 return res; in removeInterfaceSharedQuota()
537 if (int res = updateQuota(cost, maxBytes)) { in setInterfaceQuota() local
540 return res; in setInterfaceQuota()
617 const int res = iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); in removeInterfaceQuota() local
619 if (res == 0) { in removeInterfaceQuota()
623 return res ? -EREMOTEIO : 0; in removeInterfaceQuota()
637 int res = errno; in updateQuota() local
639 return -res; in updateQuota()
674 int res = 0; in setGlobalAlert() local
676 res = updateQuota(alertName, bytes); in setGlobalAlert()
678 res = runIptablesAlertCmd(IptOpInsert, alertName, bytes); in setGlobalAlert()
679 if (res) { in setGlobalAlert()
680 res = -EREMOTEIO; in setGlobalAlert()
684 return res; in setGlobalAlert()
696 int res = 0; in removeGlobalAlert() local
697 res = runIptablesAlertCmd(IptOpDelete, alertName, mGlobalAlertBytes); in removeGlobalAlert()
699 return res; in removeGlobalAlert()
756 int res = 0; in setCostlyAlert() local
771 res = updateQuota(alertName, *alertBytes); in setCostlyAlert()
778 res = iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr); in setCostlyAlert()
779 if (res) { in setCostlyAlert()
781 res = -EREMOTEIO; in setCostlyAlert()
784 if (res == 0) { in setCostlyAlert()
787 return res; in setCostlyAlert()