Lines Matching refs:alertQuotaCmd
741 std::string alertQuotaCmd = "*filter\n"; in runIptablesAlertCmd() local
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()
747 StringAppendF(&alertQuotaCmd, "COMMIT\n"); in runIptablesAlertCmd()
749 return iptablesRestoreFunction(V4V6, alertQuotaCmd, nullptr); in runIptablesAlertCmd()
754 std::string alertQuotaCmd = "*filter\n"; in runIptablesAlertFwdCmd() local
755 StringAppendF(&alertQuotaCmd, ALERT_IPT_TEMPLATE, opFlag, "bw_FORWARD", bytes, alertName); in runIptablesAlertFwdCmd()
756 StringAppendF(&alertQuotaCmd, "COMMIT\n"); in runIptablesAlertFwdCmd()
758 return iptablesRestoreFunction(V4V6, alertQuotaCmd, nullptr); in runIptablesAlertFwdCmd()
907 char *alertQuotaCmd; in setCostlyAlert() local
926 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "-A", chainName, bytes, alertName); in setCostlyAlert()
927 res |= runIpxtablesCmd(alertQuotaCmd, IptJumpNoAdd); in setCostlyAlert()
928 free(alertQuotaCmd); in setCostlyAlert()
937 char *alertQuotaCmd; in removeCostlyAlert() local
954 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "-D", chainName, *alertBytes, alertName); in removeCostlyAlert()
955 res |= runIpxtablesCmd(alertQuotaCmd, IptJumpNoAdd); in removeCostlyAlert()
956 free(alertQuotaCmd); in removeCostlyAlert()