Lines Matching refs:bytes
670 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { in getInterfaceSharedQuota() argument
671 return getInterfaceQuota("shared", bytes); in getInterfaceSharedQuota()
674 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { in getInterfaceQuota() argument
686 scanRes = fscanf(fp, "%lld", bytes); in getInterfaceQuota()
687 ALOGV("Read quota res=%d bytes=%lld", scanRes, *bytes); in getInterfaceQuota()
725 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { in updateQuota() argument
736 fprintf(fp, "%lld\n", bytes); in updateQuota()
741 int BandwidthController::runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertCmd() argument
763 bytes, alertName); in runIptablesAlertCmd()
767 bytes, alertName); in runIptablesAlertCmd()
773 int BandwidthController::runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertFwdCmd() argument
795 bytes, alertName); in runIptablesAlertFwdCmd()
801 int BandwidthController::setGlobalAlert(int64_t bytes) { in setGlobalAlert() argument
805 if (!bytes) { in setGlobalAlert()
810 res = updateQuota(alertName, bytes); in setGlobalAlert()
812 res = runIptablesAlertCmd(IptOpInsert, alertName, bytes); in setGlobalAlert()
815 res |= runIptablesAlertFwdCmd(IptOpInsert, alertName, bytes); in setGlobalAlert()
818 globalAlertBytes = bytes; in setGlobalAlert()
884 int BandwidthController::setSharedAlert(int64_t bytes) { in setSharedAlert() argument
889 if (!bytes) { in setSharedAlert()
893 return setCostlyAlert("shared", bytes, &sharedAlertBytes); in setSharedAlert()
900 int BandwidthController::setInterfaceAlert(const char *iface, int64_t bytes) { in setInterfaceAlert() argument
903 if (!bytes) { in setInterfaceAlert()
917 return setCostlyAlert(iface, bytes, &it->alert); in setInterfaceAlert()
936 int BandwidthController::setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes) { in setCostlyAlert() argument
942 if (!bytes) { in setCostlyAlert()
951 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "-A", chainName, bytes, alertName); in setCostlyAlert()
956 *alertBytes = bytes; in setCostlyAlert()
1002 int64_t packets, bytes; in parseForwardChainStats() local
1006 iface0[0] = iface1[0] = rest[0] = packets = bytes = 0; in parseForwardChainStats()
1008 &packets, &bytes, iface0, iface1, rest); in parseForwardChainStats()
1010 iface0, iface1, packets, bytes, rest, buffPtr); in parseForwardChainStats()
1017 … ALOGV("iface_in=%s iface_out=%s rx_bytes=%lld rx_packets=%lld ", iface0, iface1, bytes, packets); in parseForwardChainStats()
1019 stats.rxBytes = bytes; in parseForwardChainStats()
1021 … ALOGV("iface_in=%s iface_out=%s tx_bytes=%lld tx_packets=%lld ", iface1, iface0, bytes, packets); in parseForwardChainStats()
1023 stats.txBytes = bytes; in parseForwardChainStats()