Lines Matching defs:bytes
167 ssize_t bytes;
177 bytes = read(fd, iface->buffer, iface->buffer_size);
178 if (bytes == -1)
180 else if ((size_t)bytes < sizeof(packet))
182 iface->buffer_len = bytes;
185 bytes = -1;
194 bytes = packet.bh_caplen - ETHER_HDR_LEN;
195 if (bytes > len)
196 bytes = len;
197 memcpy(data, payload, bytes);
203 if (bytes != -1)
204 return bytes;