Lines Matching defs:hdr
254 static int pcap_ng_next_packet(pcap_t *p, struct pcap_pkthdr *hdr,
1098 * in hdr and a pointer to the contents in data. Return 1 on success, 0
1102 pcap_ng_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data)
1148 hdr->caplen = SWAPLONG(epbp->caplen);
1149 hdr->len = SWAPLONG(epbp->len);
1154 hdr->caplen = epbp->caplen;
1155 hdr->len = epbp->len;
1182 hdr->len = SWAPLONG(spbp->len);
1184 hdr->len = spbp->len;
1191 hdr->caplen = hdr->len;
1192 if (hdr->caplen > (bpf_u_int32)p->snapshot)
1193 hdr->caplen = p->snapshot;
1213 hdr->caplen = SWAPLONG(pbp->caplen);
1214 hdr->len = SWAPLONG(pbp->len);
1219 hdr->caplen = pbp->caplen;
1220 hdr->len = pbp->len;
1375 if (hdr->caplen > (bpf_u_int32)p->snapshot) {
1378 "snaplen of %d", hdr->caplen, p->snapshot);
1495 hdr->ts.tv_sec = (long)sec;
1496 hdr->ts.tv_usec = (long)frac;
1504 hdr->ts.tv_sec = (time_t)sec;
1505 hdr->ts.tv_usec = (int)frac;
1511 *data = get_from_block_data(&cursor, hdr->caplen, p->errbuf);
1515 pcap_post_process(p->linktype, p->swapped, hdr, *data);