Lines Matching defs:caplen
120 uint32_t caplen;
436 if (ph.caplen > hdr.snaplen || ph.caplen > PFLOGD_MAXSNAPLEN)
438 pos += sizeof(ph) + ph.caplen;
441 fseek(fp, ph.caplen, SEEK_CUR);
482 sf_hdr.caplen = h->caplen;
508 if (fwrite(sp, h->caplen, 1, f) != 1)
569 size_t len = sizeof(*h) + h->caplen;
572 size_t len = sizeof(sf_hdr) + h->caplen;
575 if (len < sizeof(*h) || h->caplen > (size_t)cur_snaplen) {
603 memcpy(bufpos + sizeof(*h), sp, h->caplen);
607 sf_hdr.caplen = h->caplen;
611 memcpy(bufpos + sizeof(sf_hdr), sp, h->caplen);