Searched refs:costName (Results 1 – 2 of 2) sorted by relevance
/system/netd/server/ |
D | BandwidthController.cpp | 362 std::string BandwidthController::makeIptablesQuotaCmd(IptFullOp op, const char *costName, int64_t q… in makeIptablesQuotaCmd() argument 382 …asprintf(&buff, "%s bw_costly_%s -m quota2 ! --quota %" PRId64" --name %s", opFlag, costName, quot… in makeIptablesQuotaCmd() 383 costName); in makeIptablesQuotaCmd() 486 const char *costName = "shared"; in setInterfaceSharedQuota() local 515 quotaCmd = makeIptablesQuotaCmd(IptFullOpInsert, costName, maxBytes); in setInterfaceSharedQuota() 528 res |= updateQuota(costName, maxBytes); in setInterfaceSharedQuota() 530 ALOGE("Failed update quota for %s", costName); in setInterfaceSharedQuota() 554 const char *costName = "shared"; in removeInterfaceSharedQuota() local 578 quotaCmd = makeIptablesQuotaCmd(IptFullOpDelete, costName, sharedQuotaBytes); in removeInterfaceSharedQuota() 593 const char *costName; in setInterfaceQuota() local [all …]
|
D | BandwidthController.h | 148 std::string makeIptablesQuotaCmd(IptFullOp op, const char *costName, int64_t quota); 167 int setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes); 168 int removeCostlyAlert(const char *costName, int64_t *alertBytes);
|