Searched defs:bpfSize (Results 1 - 1 of 1) sorted by relevance

/external/ppp/pppd/plugins/rp-pppoe/
H A Dif.c100 int bpfSize = 0; /* Number of unread bytes in buffer */ variable
603 * bpfSize and bpfOffset variables to force a new read on the next
609 bpfSize = bpfOffset = 0;
632 if (bpfSize <= 0) {
634 if ((bpfSize = read(sock, bpfBuffer, bpfLength)) < 0) {
639 if (bpfSize < sizeof(hdr)) {
640 syslog(LOG_ERR, "Truncated bpf packet header: len=%d", bpfSize);
641 clearPacketHeader(pkt); /* resets bpfSize and bpfOffset */
648 clearPacketHeader(pkt); /* resets bpfSize and bpfOffset */
652 if (seglen > bpfSize) {
[all...]

Completed in 167 milliseconds