Lines Matching refs:bytes
743 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { in getInterfaceSharedQuota() argument
744 return getInterfaceQuota("shared", bytes); in getInterfaceSharedQuota()
747 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { in getInterfaceQuota() argument
762 scanRes = fscanf(fp, "%" SCNd64, bytes); in getInterfaceQuota()
763 ALOGV("Read quota res=%d bytes=%" PRId64, scanRes, *bytes); in getInterfaceQuota()
801 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { in updateQuota() argument
817 fprintf(fp, "%" PRId64"\n", bytes); in updateQuota()
822 int BandwidthController::runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertCmd() argument
844 bytes, alertName); in runIptablesAlertCmd()
848 bytes, alertName); in runIptablesAlertCmd()
854 int BandwidthController::runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertFwdCmd() argument
876 bytes, alertName); in runIptablesAlertFwdCmd()
882 int BandwidthController::setGlobalAlert(int64_t bytes) { in setGlobalAlert() argument
886 if (!bytes) { in setGlobalAlert()
891 res = updateQuota(alertName, bytes); in setGlobalAlert()
893 res = runIptablesAlertCmd(IptOpInsert, alertName, bytes); in setGlobalAlert()
896 res |= runIptablesAlertFwdCmd(IptOpInsert, alertName, bytes); in setGlobalAlert()
899 globalAlertBytes = bytes; in setGlobalAlert()
965 int BandwidthController::setSharedAlert(int64_t bytes) { in setSharedAlert() argument
970 if (!bytes) { in setSharedAlert()
974 return setCostlyAlert("shared", bytes, &sharedAlertBytes); in setSharedAlert()
981 int BandwidthController::setInterfaceAlert(const char *iface, int64_t bytes) { in setInterfaceAlert() argument
989 if (!bytes) { in setInterfaceAlert()
1003 return setCostlyAlert(iface, bytes, &it->alert); in setInterfaceAlert()
1027 int BandwidthController::setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes) { in setCostlyAlert() argument
1038 if (!bytes) { in setCostlyAlert()
1047 asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "-A", chainName, bytes, alertName); in setCostlyAlert()
1052 *alertBytes = bytes; in setCostlyAlert()
1123 int64_t packets, bytes; in addForwardChainStats() local
1136 iface0[0] = iface1[0] = rest[0] = packets = bytes = 0; in addForwardChainStats()
1141 &packets, &bytes, iface0, iface1, rest); in addForwardChainStats()
1146 &packets, &bytes, iface0, iface1, rest); in addForwardChainStats()
1149 iface0, iface1, packets, bytes, rest, buffPtr); in addForwardChainStats()
1162 …ce_in=%s iface_out=%s rx_bytes=%" PRId64" rx_packets=%" PRId64" ", iface0, iface1, bytes, packets); in addForwardChainStats()
1164 stats.rxBytes = bytes; in addForwardChainStats()
1166 …ce_in=%s iface_out=%s rx_bytes=%" PRId64" rx_packets=%" PRId64" ", iface0, iface1, bytes, packets); in addForwardChainStats()
1168 stats.txBytes = bytes; in addForwardChainStats()
1172 …ce_in=%s iface_out=%s rx_bytes=%" PRId64" rx_packets=%" PRId64" ", iface0, iface1, bytes, packets); in addForwardChainStats()
1176 stats.rxBytes = bytes; in addForwardChainStats()
1178 …ce_in=%s iface_out=%s rx_bytes=%" PRId64" rx_packets=%" PRId64" ", iface0, iface1, bytes, packets); in addForwardChainStats()
1182 stats.txBytes = bytes; in addForwardChainStats()
1186 …ce_in=%s iface_out=%s rx_bytes=%" PRId64" rx_packets=%" PRId64" ", iface0, iface1, bytes, packets); in addForwardChainStats()
1190 stats.rxBytes = bytes; in addForwardChainStats()
1192 …ce_in=%s iface_out=%s rx_bytes=%" PRId64" rx_packets=%" PRId64" ", iface0, iface1, bytes, packets); in addForwardChainStats()
1194 stats.txBytes = bytes; in addForwardChainStats()