Lines Matching defs:hdr

49 swap_pflog_header(const struct pcap_pkthdr *hdr, u_char *buf)
51 u_int caplen = hdr->caplen;
52 u_int length = hdr->len;
188 swap_linux_sll_socketcan_header(const struct pcap_pkthdr *hdr, u_char *buf)
190 u_int caplen = hdr->caplen;
191 u_int length = hdr->len;
213 swap_linux_sll2_socketcan_header(const struct pcap_pkthdr *hdr, u_char *buf)
215 u_int caplen = hdr->caplen;
216 u_int length = hdr->len;
244 swap_linux_usb_header(const struct pcap_pkthdr *hdr, u_char *buf,
261 if (hdr->caplen < offset)
268 if (hdr->caplen < offset)
275 if (hdr->caplen < offset)
280 if (hdr->caplen < offset)
285 if (hdr->caplen < offset)
290 if (hdr->caplen < offset)
295 if (hdr->caplen < offset)
301 if (hdr->caplen < offset)
306 if (hdr->caplen < offset)
333 if (hdr->caplen < offset)
338 if (hdr->caplen < offset)
343 if (hdr->caplen < offset)
348 if (hdr->caplen < offset)
360 if (hdr->caplen < offset)
365 if (hdr->caplen < offset)
370 if (hdr->caplen < offset)
394 swap_nflog_header(const struct pcap_pkthdr *hdr, u_char *buf)
399 u_int caplen = hdr->caplen;
400 u_int length = hdr->len;
450 swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr, u_char *data)
460 swap_pflog_header(hdr, data);
464 swap_linux_sll_socketcan_header(hdr, data);
468 swap_linux_sll2_socketcan_header(hdr, data);
472 swap_linux_usb_header(hdr, data, 0);
476 swap_linux_usb_header(hdr, data, 1);
480 swap_nflog_header(hdr, data);
486 packet_length_might_be_wrong(struct pcap_pkthdr *hdr,
500 return (hdr->len == old_style_packet_length);
504 pcapint_post_process(int linktype, int swapped, struct pcap_pkthdr *hdr,
508 swap_pseudo_headers(linktype, hdr, data);
534 if (hdr->caplen < sizeof (pcap_usb_header_mmapped)) {
570 packet_length_might_be_wrong(hdr, usb_hdr)) {
580 if (hdr->caplen < iso_pseudo_header_len(usb_hdr))
586 len = incoming_isochronous_transfer_completed_len(hdr,
598 if (len >= hdr->caplen)
599 hdr->len = len;
623 if (hdr->caplen > hdr->len)
624 hdr->len = hdr->caplen;