Lines Matching refs:sf_hdr
400 struct pcap_sf_patched_pkthdr sf_hdr;
412 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp);
437 hdr->caplen = SWAPLONG(sf_hdr.caplen);
438 hdr->len = SWAPLONG(sf_hdr.len);
439 hdr->ts.tv_sec = SWAPLONG(sf_hdr.ts.tv_sec);
440 hdr->ts.tv_usec = SWAPLONG(sf_hdr.ts.tv_usec);
442 hdr->caplen = sf_hdr.caplen;
443 hdr->len = sf_hdr.len;
444 hdr->ts.tv_sec = sf_hdr.ts.tv_sec;
445 hdr->ts.tv_usec = sf_hdr.ts.tv_usec;
613 struct pcap_sf_pkthdr sf_hdr;
616 sf_hdr.ts.tv_sec = h->ts.tv_sec;
617 sf_hdr.ts.tv_usec = h->ts.tv_usec;
618 sf_hdr.caplen = h->caplen;
619 sf_hdr.len = h->len;
621 (void)fwrite(&sf_hdr, sizeof(sf_hdr), 1, f);