Home | History | Annotate | Download | only in netd

Lines Matching full:alertname

741 int BandwidthController::runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) {
763 bytes, alertName);
767 bytes, alertName);
773 int BandwidthController::runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) {
795 bytes, alertName);
802 const char *alertName = ALERT_GLOBAL_NAME;
810 res = updateQuota(alertName, bytes);
812 res = runIptablesAlertCmd(IptOpInsert, alertName, bytes);
815 res |= runIptablesAlertFwdCmd(IptOpInsert, alertName, bytes);
823 const char *alertName = ALERT_GLOBAL_NAME;
839 res = runIptablesAlertFwdCmd(IptOpInsert, alertName, globalAlertBytes);
845 const char *alertName = ALERT_GLOBAL_NAME;
852 res = runIptablesAlertCmd(IptOpDelete, alertName, globalAlertBytes);
854 res |= runIptablesAlertFwdCmd(IptOpDelete, alertName, globalAlertBytes);
862 const char *alertName = ALERT_GLOBAL_NAME;
880 res = runIptablesAlertFwdCmd(IptOpDelete, alertName, globalAlertBytes);
940 char *alertName;
946 asprintf(&alertName, "%sAlert", costName);
948 res = updateQuota(alertName, *alertBytes);
951 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "-A", chainName, bytes, alertName);
957 free(alertName);
964 char *alertName;
967 asprintf(&alertName, "%sAlert", costName);
974 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "-D", chainName, *alertBytes, alertName);
980 free(alertName);