Home
last modified time | relevance | path

Searched refs:alertName (Results 1 – 3 of 3) sorted by relevance

/system/netd/server/
DBandwidthController.cpp739 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
[all …]
DBandwidthController.h150 int runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes);
151 int runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes);
165 int updateQuota(const char *alertName, int64_t bytes);
DNetlinkHandler.cpp123 const char *alertName = evt->findParam("ALERT_NAME"); in onEvent() local
125 notifyQuotaLimitReached(alertName, iface); in onEvent()