Lines Matching full:maxbytes
593 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) {
603 if (!maxBytes) {
614 if (maxBytes == -1) {
627 quotaCmd = makeIptablesQuotaCmd(IptOpInsert, costName, maxBytes);
633 sharedQuotaBytes = maxBytes;
639 if (maxBytes != sharedQuotaBytes) {
640 res |= updateQuota(costName, maxBytes);
645 sharedQuotaBytes = maxBytes;
699 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) {
707 if (!maxBytes) {
712 if (maxBytes == -1) {
737 quotaCmd = makeIptablesQuotaCmd(IptOpAppend, costName, maxBytes);
744 quotaIfaces.push_front(QuotaInfo(ifaceName, maxBytes, 0));
747 res |= updateQuota(costName, maxBytes);
752 it->quota = maxBytes;