Lines Matching refs:quota

51 #define ALERT_IPT_TEMPLATE "%s %s -m quota2 ! --quota %lld --name %s"
68 * - quota'd rules in the costly chain should be before bw_penalty_box lookups.
72 * * global quota vs per interface quota
73 * - global quota for all costly interfaces uses a single costly chain:
78 * iptables -I bw_costly_shared -m quota \! --quota 500000 \
88 * - quota per interface. This is achieve by having "costly" chains per quota.
89 * E.g. adding a new costly interface iface0 with its own quota:
93 * iptables -A bw_costly_iface0 -m quota \! --quota 500000 \
473 std::string BandwidthController::makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota) {
478 ALOGV("makeIptablesQuotaCmd(%d, %lld)", op, quota);
497 asprintf(&buff, "%s bw_costly_%s -m quota2 ! --quota %lld --name %s", opFlag, costName, quota,
618 /* Insert ingress quota. */
630 ALOGE("Failed set quota rule");
642 ALOGE("Failed update quota for %s", costName);
723 /* Insert ingress quota. */
733 * The rejecting quota limit should go after the penalty/happy box checks
734 * or else a naughty app could just eat up the quota.
740 ALOGE("Failed set quota rule");
749 ALOGE("Failed update quota for %s", iface);
752 it->quota = maxBytes;
780 ALOGE("Reading quota %s failed (%s)", costName, strerror(errno));
784 ALOGV("Read quota res=%d bytes=%lld", scanRes, *bytes);
814 /* This also removes the quota command of CostlyIface chain. */
830 ALOGE("Updating quota %s failed (%s)", quotaName, strerror(errno));
983 ALOGE("Need to have a prior shared quota set to set an alert");
1010 ALOGE("Need to have a prior interface quota set to set an alert");