Lines Matching refs:bpfSize
100 int bpfSize = 0; /* Number of unread bytes in buffer */ variable
609 bpfSize = bpfOffset = 0; in clearPacketHeader()
632 if (bpfSize <= 0) { in receivePacket()
634 if ((bpfSize = read(sock, bpfBuffer, bpfLength)) < 0) { in receivePacket()
639 if (bpfSize < sizeof(hdr)) { in receivePacket()
640 syslog(LOG_ERR, "Truncated bpf packet header: len=%d", bpfSize); in receivePacket()
652 if (seglen > bpfSize) { in receivePacket()
654 seglen, bpfSize); in receivePacket()
662 if (seglen >= bpfSize) { in receivePacket()
663 bpfSize = bpfOffset = 0; in receivePacket()
665 bpfSize -= seglen; in receivePacket()