Home | History | Annotate | Download | only in libpcap

Lines Matching full:sf_hdr

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