Home | History | Annotate | Download | only in rp-pppoe

Lines Matching refs:hdr

629     struct bpf_hdr hdr;
639 if (bpfSize < sizeof(hdr)) {
644 memcpy(&hdr, bpfBuffer + bpfOffset, sizeof(hdr));
645 if (hdr.bh_caplen != hdr.bh_datalen) {
647 hdr.bh_caplen, hdr.bh_datalen);
651 seglen = hdr.bh_hdrlen + hdr.bh_caplen;
659 *size = copylen = ((hdr.bh_caplen < sizeof(PPPoEPacket)) ?
660 hdr.bh_caplen : sizeof(PPPoEPacket));
661 memcpy(pkt, bpfBuffer + bpfOffset + hdr.bh_hdrlen, copylen);