Searched refs:bpfSize (Results 1 – 2 of 2) sorted by relevance
100 int bpfSize = 0; /* Number of unread bytes in buffer */ variable609 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()[all …]
76 extern int bpfSize;79 #define BPF_BUFFER_IS_EMPTY (bpfSize <= 0)80 #define BPF_BUFFER_HAS_DATA (bpfSize > 0)