Lines Matching refs:caplen
476 hdr->caplen = SWAPLONG(sf_hdr.caplen); in pcap_next_packet()
481 hdr->caplen = sf_hdr.caplen; in pcap_next_packet()
519 if (hdr->caplen <= hdr->len) { in pcap_next_packet()
529 t = hdr->caplen; in pcap_next_packet()
530 hdr->caplen = hdr->len; in pcap_next_packet()
538 if (hdr->caplen > max_snaplen_for_dlt(p->linktype)) { in pcap_next_packet()
547 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet()
550 "snaplen of %d", hdr->caplen, p->snapshot); in pcap_next_packet()
554 "maximum of %u", hdr->caplen, in pcap_next_packet()
560 if (hdr->caplen > (bpf_u_int32)p->snapshot) { in pcap_next_packet()
599 if (hdr->caplen > p->bufsize) { in pcap_next_packet()
634 bytes_to_discard = hdr->caplen - p->snapshot; in pcap_next_packet()
650 hdr->caplen, bytes_read); in pcap_next_packet()
661 hdr->caplen = p->snapshot; in pcap_next_packet()
666 if (hdr->caplen > p->bufsize) { in pcap_next_packet()
673 new_bufsize = hdr->caplen; in pcap_next_packet()
693 amt_read = fread(p->buffer, 1, hdr->caplen, fp); in pcap_next_packet()
694 if (amt_read != hdr->caplen) { in pcap_next_packet()
702 hdr->caplen, amt_read); in pcap_next_packet()
757 sf_hdr.caplen = h->caplen; in pcap_dump()
761 (void)fwrite(sp, h->caplen, 1, f); in pcap_dump()