Lines Matching refs:sf_hdr
400 struct pcap_sf_patched_pkthdr sf_hdr; in pcap_next_packet() local
412 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp); in pcap_next_packet()
434 hdr->caplen = SWAPLONG(sf_hdr.caplen); in pcap_next_packet()
435 hdr->len = SWAPLONG(sf_hdr.len); in pcap_next_packet()
436 hdr->ts.tv_sec = SWAPLONG(sf_hdr.ts.tv_sec); in pcap_next_packet()
437 hdr->ts.tv_usec = SWAPLONG(sf_hdr.ts.tv_usec); in pcap_next_packet()
439 hdr->caplen = sf_hdr.caplen; in pcap_next_packet()
440 hdr->len = sf_hdr.len; in pcap_next_packet()
441 hdr->ts.tv_sec = sf_hdr.ts.tv_sec; in pcap_next_packet()
442 hdr->ts.tv_usec = sf_hdr.ts.tv_usec; in pcap_next_packet()
595 struct pcap_sf_pkthdr sf_hdr; in pcap_dump() local
598 sf_hdr.ts.tv_sec = h->ts.tv_sec; in pcap_dump()
599 sf_hdr.ts.tv_usec = h->ts.tv_usec; in pcap_dump()
600 sf_hdr.caplen = h->caplen; in pcap_dump()
601 sf_hdr.len = h->len; in pcap_dump()
603 (void)fwrite(&sf_hdr, sizeof(sf_hdr), 1, f); in pcap_dump()