Home | History | Annotate | Download | only in netd

Lines Matching full:alertname

765 int BandwidthController::runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) {
786 bytes, alertName);
791 bytes, alertName);
797 int BandwidthController::runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) {
818 bytes, alertName);
825 const char *alertName = ALERT_GLOBAL_NAME;
833 res = updateQuota(alertName, bytes);
835 res = runIptablesAlertCmd(IptOpInsert, alertName, bytes);
838 res |= runIptablesAlertFwdCmd(IptOpInsert, alertName, bytes);
846 const char *alertName = ALERT_GLOBAL_NAME;
862 res = runIptablesAlertFwdCmd(IptOpInsert, alertName, globalAlertBytes);
868 const char *alertName = ALERT_GLOBAL_NAME;
875 res = runIptablesAlertCmd(IptOpDelete, alertName, globalAlertBytes);
877 res |= runIptablesAlertFwdCmd(IptOpDelete, alertName, globalAlertBytes);
885 const char *alertName = ALERT_GLOBAL_NAME;
903 res = runIptablesAlertFwdCmd(IptOpDelete, alertName, globalAlertBytes);
963 char *alertName;
969 asprintf(&alertName, "%sAlert", costName);
971 res = updateQuota(alertName, *alertBytes);
974 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "", "-I", chainNameAndPos, bytes, alertName);
980 free(alertName);
987 char *alertName;
990 asprintf(&alertName, "%sAlert", costName);
997 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "", "-D", chainName, *alertBytes, alertName);
1003 free(alertName);