Lines Matching defs:bytes
669 uint32_t bytes;
676 ssize_t nr_sent = 0, bytes = 0;
693 while (bytes < a->bytes && !READ_ONCE(a->stop)) {
695 MIN(a->bytes - bytes, sizeof(batch)), 0);
702 bytes += nr_sent;
705 if (bytes != a->bytes) {
706 log_err("send %zd expected %u", bytes, a->bytes);
708 err = bytes > a->bytes ? -E2BIG : -EINTR;
723 ssize_t nr_recv = 0, bytes = 0;
726 .bytes = total_bytes,
741 while (bytes < total_bytes && !READ_ONCE(arg.stop)) {
743 MIN(total_bytes - bytes, sizeof(batch)), 0);
750 bytes += nr_recv;
753 if (bytes != total_bytes) {
754 log_err("recv %zd expected %u", bytes, total_bytes);
756 err = bytes > total_bytes ? -E2BIG : -EINTR;
1036 * captured packets as soon as possible. The snaplen is set to 1024 bytes
1053 /* Limit the size of the packet (first N bytes) */