Lines Matching refs:caplen
51 u_int caplen = hdr->caplen; in swap_pflog_header() local
56 if (caplen < (u_int) (offsetof(struct pfloghdr, uid) + sizeof pflhdr->uid) || in swap_pflog_header()
70 if (caplen < (u_int) (offsetof(struct pfloghdr, pid) + sizeof pflhdr->pid) || in swap_pflog_header()
81 if (caplen < (u_int) (offsetof(struct pfloghdr, rule_uid) + sizeof pflhdr->rule_uid) || in swap_pflog_header()
92 if (caplen < (u_int) (offsetof(struct pfloghdr, rule_pid) + sizeof pflhdr->rule_pid) || in swap_pflog_header()
120 swap_socketcan_header(uint16_t protocol, u_int caplen, u_int length, in swap_socketcan_header() argument
135 if (caplen < (u_int) (offsetof(pcap_can_socketcan_hdr, can_id) + sizeof hdrp->can_id) || in swap_socketcan_header()
150 …if (caplen < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, priority_vcid) + sizeof xl_hdrp->priorit… in swap_socketcan_header()
156 …if (caplen < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, payload_length) + sizeof xl_hdrp->payloa… in swap_socketcan_header()
162 …if (caplen < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, acceptance_field) + sizeof xl_hdrp->acce… in swap_socketcan_header()
190 u_int caplen = hdr->caplen; in swap_linux_sll_socketcan_header() local
194 if (caplen < (u_int) sizeof(struct sll_header) || in swap_linux_sll_socketcan_header()
204 caplen - (u_int) sizeof(struct sll_header), in swap_linux_sll_socketcan_header()
215 u_int caplen = hdr->caplen; in swap_linux_sll2_socketcan_header() local
219 if (caplen < (u_int) sizeof(struct sll2_header) || in swap_linux_sll2_socketcan_header()
229 caplen - (u_int) sizeof(struct sll2_header), in swap_linux_sll2_socketcan_header()
261 if (hdr->caplen < offset) in swap_linux_usb_header()
268 if (hdr->caplen < offset) in swap_linux_usb_header()
275 if (hdr->caplen < offset) in swap_linux_usb_header()
280 if (hdr->caplen < offset) in swap_linux_usb_header()
285 if (hdr->caplen < offset) in swap_linux_usb_header()
290 if (hdr->caplen < offset) in swap_linux_usb_header()
295 if (hdr->caplen < offset) in swap_linux_usb_header()
301 if (hdr->caplen < offset) in swap_linux_usb_header()
306 if (hdr->caplen < offset) in swap_linux_usb_header()
333 if (hdr->caplen < offset) in swap_linux_usb_header()
338 if (hdr->caplen < offset) in swap_linux_usb_header()
343 if (hdr->caplen < offset) in swap_linux_usb_header()
348 if (hdr->caplen < offset) in swap_linux_usb_header()
360 if (hdr->caplen < offset) in swap_linux_usb_header()
365 if (hdr->caplen < offset) in swap_linux_usb_header()
370 if (hdr->caplen < offset) in swap_linux_usb_header()
399 u_int caplen = hdr->caplen; in swap_nflog_header() local
403 if (caplen < (u_int) sizeof(nflog_hdr_t) || in swap_nflog_header()
415 caplen -= sizeof(nflog_hdr_t); in swap_nflog_header()
418 while (caplen >= sizeof(nflog_tlv_t)) { in swap_nflog_header()
437 if (caplen < size || length < size) { in swap_nflog_header()
444 caplen -= size; in swap_nflog_header()
534 if (hdr->caplen < sizeof (pcap_usb_header_mmapped)) { in pcapint_post_process()
580 if (hdr->caplen < iso_pseudo_header_len(usb_hdr)) in pcapint_post_process()
598 if (len >= hdr->caplen) in pcapint_post_process()
623 if (hdr->caplen > hdr->len) in pcapint_post_process()
624 hdr->len = hdr->caplen; in pcapint_post_process()