Lines Matching defs:sf_hdr
297 struct pcap_sf_patched_pkthdr sf_hdr;
309 amt_read = fread(&sf_hdr, 1, p->sf.hdrsize, fp);
331 hdr->caplen = SWAPLONG(sf_hdr.caplen);
332 hdr->len = SWAPLONG(sf_hdr.len);
333 hdr->ts.tv_sec = SWAPLONG(sf_hdr.ts.tv_sec);
334 hdr->ts.tv_usec = SWAPLONG(sf_hdr.ts.tv_usec);
336 hdr->caplen = sf_hdr.caplen;
337 hdr->len = sf_hdr.len;
338 hdr->ts.tv_sec = sf_hdr.ts.tv_sec;
339 hdr->ts.tv_usec = sf_hdr.ts.tv_usec;
481 struct pcap_sf_pkthdr sf_hdr;
484 sf_hdr.ts.tv_sec = h->ts.tv_sec;
485 sf_hdr.ts.tv_usec = h->ts.tv_usec;
486 sf_hdr.caplen = h->caplen;
487 sf_hdr.len = h->len;
489 (void)fwrite(&sf_hdr, sizeof(sf_hdr), 1, f);