Lines Matching refs:hdr
227 static int pcap_ng_next_packet(pcap_t *p, struct pcap_pkthdr *hdr,
941 * in hdr and a pointer to the contents in data. Return 0 on success, 1
945 pcap_ng_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data)
991 hdr->caplen = SWAPLONG(epbp->caplen);
992 hdr->len = SWAPLONG(epbp->len);
997 hdr->caplen = epbp->caplen;
998 hdr->len = epbp->len;
1025 hdr->len = SWAPLONG(spbp->len);
1027 hdr->len = spbp->len;
1034 hdr->caplen = hdr->len;
1035 if (hdr->caplen > p->snapshot)
1036 hdr->caplen = p->snapshot;
1056 hdr->caplen = SWAPLONG(pbp->caplen);
1057 hdr->len = SWAPLONG(pbp->len);
1062 hdr->caplen = pbp->caplen;
1063 hdr->len = pbp->len;
1260 hdr->ts.tv_sec = sec;
1261 hdr->ts.tv_usec = frac;
1266 *data = get_from_block_data(&cursor, hdr->caplen, p->errbuf);
1271 swap_pseudo_headers(p->linktype, hdr, *data);