Lines Matching refs:hdr
49 swap_pflog_header(const struct pcap_pkthdr *hdr, u_char *buf) in swap_pflog_header() argument
51 u_int caplen = hdr->caplen; in swap_pflog_header()
52 u_int length = hdr->len; in swap_pflog_header()
188 swap_linux_sll_socketcan_header(const struct pcap_pkthdr *hdr, u_char *buf) in swap_linux_sll_socketcan_header() argument
190 u_int caplen = hdr->caplen; in swap_linux_sll_socketcan_header()
191 u_int length = hdr->len; in swap_linux_sll_socketcan_header()
213 swap_linux_sll2_socketcan_header(const struct pcap_pkthdr *hdr, u_char *buf) in swap_linux_sll2_socketcan_header() argument
215 u_int caplen = hdr->caplen; in swap_linux_sll2_socketcan_header()
216 u_int length = hdr->len; in swap_linux_sll2_socketcan_header()
244 swap_linux_usb_header(const struct pcap_pkthdr *hdr, u_char *buf, in swap_linux_usb_header() argument
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()
394 swap_nflog_header(const struct pcap_pkthdr *hdr, u_char *buf) in swap_nflog_header() argument
399 u_int caplen = hdr->caplen; in swap_nflog_header()
400 u_int length = hdr->len; in swap_nflog_header()
450 swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr, u_char *data) in swap_pseudo_headers() argument
460 swap_pflog_header(hdr, data); in swap_pseudo_headers()
464 swap_linux_sll_socketcan_header(hdr, data); in swap_pseudo_headers()
468 swap_linux_sll2_socketcan_header(hdr, data); in swap_pseudo_headers()
472 swap_linux_usb_header(hdr, data, 0); in swap_pseudo_headers()
476 swap_linux_usb_header(hdr, data, 1); in swap_pseudo_headers()
480 swap_nflog_header(hdr, data); in swap_pseudo_headers()
486 packet_length_might_be_wrong(struct pcap_pkthdr *hdr, in packet_length_might_be_wrong() argument
500 return (hdr->len == old_style_packet_length); in packet_length_might_be_wrong()
504 pcapint_post_process(int linktype, int swapped, struct pcap_pkthdr *hdr, in pcapint_post_process() argument
508 swap_pseudo_headers(linktype, hdr, data); in pcapint_post_process()
534 if (hdr->caplen < sizeof (pcap_usb_header_mmapped)) { in pcapint_post_process()
570 packet_length_might_be_wrong(hdr, usb_hdr)) { in pcapint_post_process()
580 if (hdr->caplen < iso_pseudo_header_len(usb_hdr)) in pcapint_post_process()
586 len = incoming_isochronous_transfer_completed_len(hdr, in pcapint_post_process()
598 if (len >= hdr->caplen) in pcapint_post_process()
599 hdr->len = len; in pcapint_post_process()
623 if (hdr->caplen > hdr->len) in pcapint_post_process()
624 hdr->len = hdr->caplen; in pcapint_post_process()