Lines Matching refs:alertName

739 int BandwidthController::runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) {  in runIptablesAlertCmd()  argument
745 StringAppendF(&alertQuotaCmd, ALERT_IPT_TEMPLATE, opFlag, "bw_INPUT", bytes, alertName); in runIptablesAlertCmd()
746 StringAppendF(&alertQuotaCmd, ALERT_IPT_TEMPLATE, opFlag, "bw_OUTPUT", bytes, alertName); in runIptablesAlertCmd()
752 int BandwidthController::runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertFwdCmd() argument
755 StringAppendF(&alertQuotaCmd, ALERT_IPT_TEMPLATE, opFlag, "bw_FORWARD", bytes, alertName); in runIptablesAlertFwdCmd()
762 const char *alertName = ALERT_GLOBAL_NAME; in setGlobalAlert() local
770 res = updateQuota(alertName, bytes); in setGlobalAlert()
772 res = runIptablesAlertCmd(IptOpInsert, alertName, bytes); in setGlobalAlert()
775 res |= runIptablesAlertFwdCmd(IptOpInsert, alertName, bytes); in setGlobalAlert()
783 const char *alertName = ALERT_GLOBAL_NAME; in setGlobalAlertInForwardChain() local
799 res = runIptablesAlertFwdCmd(IptOpInsert, alertName, globalAlertBytes); in setGlobalAlertInForwardChain()
805 const char *alertName = ALERT_GLOBAL_NAME; in removeGlobalAlert() local
812 res = runIptablesAlertCmd(IptOpDelete, alertName, globalAlertBytes); in removeGlobalAlert()
814 res |= runIptablesAlertFwdCmd(IptOpDelete, alertName, globalAlertBytes); in removeGlobalAlert()
822 const char *alertName = ALERT_GLOBAL_NAME; in removeGlobalAlertInForwardChain() local
840 res = runIptablesAlertFwdCmd(IptOpDelete, alertName, globalAlertBytes); in removeGlobalAlertInForwardChain()
910 char *alertName; in setCostlyAlert() local
921 asprintf(&alertName, "%sAlert", costName); in setCostlyAlert()
923 res = updateQuota(alertName, *alertBytes); in setCostlyAlert()
926 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "-A", chainName, bytes, alertName); in setCostlyAlert()
932 free(alertName); in setCostlyAlert()
939 char *alertName; in removeCostlyAlert() local
952 asprintf(&alertName, "%sAlert", costName); in removeCostlyAlert()
954 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "-D", chainName, *alertBytes, alertName); in removeCostlyAlert()
960 free(alertName); in removeCostlyAlert()