Lines Matching full:alertname
740 int BandwidthController::runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) {
761 bytes, alertName);
766 bytes, alertName);
772 int BandwidthController::runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) {
793 bytes, alertName);
800 const char *alertName = ALERT_GLOBAL_NAME;
808 res = updateQuota(alertName, bytes);
810 res = runIptablesAlertCmd(IptOpInsert, alertName, bytes);
813 res |= runIptablesAlertFwdCmd(IptOpInsert, alertName, bytes);
821 const char *alertName = ALERT_GLOBAL_NAME;
837 res = runIptablesAlertFwdCmd(IptOpInsert, alertName, globalAlertBytes);
843 const char *alertName = ALERT_GLOBAL_NAME;
850 res = runIptablesAlertCmd(IptOpDelete, alertName, globalAlertBytes);
852 res |= runIptablesAlertFwdCmd(IptOpDelete, alertName, globalAlertBytes);
860 const char *alertName = ALERT_GLOBAL_NAME;
878 res = runIptablesAlertFwdCmd(IptOpDelete, alertName, globalAlertBytes);
938 char *alertName;
944 asprintf(&alertName, "%sAlert", costName);
946 res = updateQuota(alertName, *alertBytes);
949 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "", "-I", chainNameAndPos, bytes, alertName);
955 free(alertName);
962 char *alertName;
965 asprintf(&alertName, "%sAlert", costName);
972 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "", "-D", chainName, *alertBytes, alertName);
978 free(alertName);