Lines Matching defs:sf_hdr
521 struct pcap_sf_patched_pkthdr sf_hdr;
533 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp);
553 hdr->caplen = SWAPLONG(sf_hdr.caplen);
554 hdr->len = SWAPLONG(sf_hdr.len);
555 hdr->ts.tv_sec = SWAPLONG(sf_hdr.ts.tv_sec);
556 hdr->ts.tv_usec = SWAPLONG(sf_hdr.ts.tv_usec);
558 hdr->caplen = sf_hdr.caplen;
559 hdr->len = sf_hdr.len;
560 hdr->ts.tv_sec = sf_hdr.ts.tv_sec;
561 hdr->ts.tv_usec = sf_hdr.ts.tv_usec;
823 struct pcap_sf_pkthdr sf_hdr;
855 sf_hdr.ts.tv_sec = (bpf_u_int32)h->ts.tv_sec;
856 sf_hdr.ts.tv_usec = (bpf_u_int32)h->ts.tv_usec;
857 sf_hdr.caplen = h->caplen;
858 sf_hdr.len = h->len;
867 if (fwrite(&sf_hdr, sizeof(sf_hdr), 1, f) == 1) {