Searched refs:costName (Results 1 – 2 of 2) sorted by relevance
/system/netd/server/ |
D | BandwidthController.cpp | 476 std::string BandwidthController::makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota… in makeIptablesQuotaCmd() argument 500 …asprintf(&buff, "%s bw_costly_%s -m quota2 ! --quota %" PRId64" --name %s", opFlag, costName, quot… in makeIptablesQuotaCmd() 501 costName); in makeIptablesQuotaCmd() 602 const char *costName = "shared"; in setInterfaceSharedQuota() local 631 quotaCmd = makeIptablesQuotaCmd(IptOpInsert, costName, maxBytes); in setInterfaceSharedQuota() 644 res |= updateQuota(costName, maxBytes); in setInterfaceSharedQuota() 646 ALOGE("Failed update quota for %s", costName); in setInterfaceSharedQuota() 670 const char *costName = "shared"; in removeInterfaceSharedQuota() local 694 quotaCmd = makeIptablesQuotaCmd(IptOpDelete, costName, sharedQuotaBytes); in removeInterfaceSharedQuota() 709 const char *costName; in setInterfaceQuota() local [all …]
|
D | BandwidthController.h | 134 std::string makeIptablesQuotaCmd(IptOp op, const char *costName, int64_t quota); 153 int setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes); 154 int removeCostlyAlert(const char *costName, int64_t *alertBytes);
|