Lines Matching refs:hdr
204 static int pcap_ng_next_packet(pcap_t *p, struct pcap_pkthdr *hdr,
763 * in hdr and a pointer to the contents in data. Return 0 on success, 1
767 pcap_ng_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data)
814 hdr->caplen = SWAPLONG(epbp->caplen);
815 hdr->len = SWAPLONG(epbp->len);
820 hdr->caplen = epbp->caplen;
821 hdr->len = epbp->len;
848 hdr->len = SWAPLONG(spbp->len);
850 hdr->len = spbp->len;
857 hdr->caplen = hdr->len;
858 if (hdr->caplen > p->snapshot)
859 hdr->caplen = p->snapshot;
879 hdr->caplen = SWAPLONG(pbp->caplen);
880 hdr->len = SWAPLONG(pbp->len);
885 hdr->caplen = pbp->caplen;
886 hdr->len = pbp->len;
1080 hdr->ts.tv_sec = sec;
1081 hdr->ts.tv_usec = frac;
1086 *data = get_from_block_data(&cursor, hdr->caplen, p->errbuf);
1099 swap_linux_usb_header(hdr, *data, 0);
1103 swap_linux_usb_header(hdr, *data, 1);