Searched refs:costName (Results 1 – 2 of 2) sorted by relevance
/system/netd/server/ |
D | BandwidthController.cpp | 435 std::string BandwidthController::makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota… in makeIptablesQuotaCmd() argument 459 …asprintf(&buff, "%s bw_costly_%s -m quota2 ! --quota %" PRId64" --name %s", opFlag, costName, quot… in makeIptablesQuotaCmd() 460 costName); in makeIptablesQuotaCmd() 569 const char *costName = "shared"; in setInterfaceSharedQuota() local 598 quotaCmd = makeIptablesQuotaCmd(IptOpInsert, costName, maxBytes); in setInterfaceSharedQuota() 611 res |= updateQuota(costName, maxBytes); in setInterfaceSharedQuota() 613 ALOGE("Failed update quota for %s", costName); in setInterfaceSharedQuota() 637 const char *costName = "shared"; in removeInterfaceSharedQuota() local 661 quotaCmd = makeIptablesQuotaCmd(IptOpDelete, costName, sharedQuotaBytes); in removeInterfaceSharedQuota() 676 const char *costName; in setInterfaceQuota() local [all …]
|
D | BandwidthController.h | 137 std::string makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota); 156 int setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes); 157 int removeCostlyAlert(const char *costName, int64_t *alertBytes);
|