Lines Matching refs:hdr
2013 struct pcap_sf_pkthdr hdr;
2025 hdr.ts.tv_sec = ts / 1000000;
2026 hdr.ts.tv_usec = ts % 1000000;
2027 hdr.caplen = caplen;
2028 hdr.len = size;
2029 if (write(s->fd, &hdr, sizeof(hdr)) != sizeof(hdr) ||
2050 struct pcap_file_hdr hdr;
2063 hdr.magic = PCAP_MAGIC;
2064 hdr.version_major = 2;
2065 hdr.version_minor = 4;
2066 hdr.thiszone = 0;
2067 hdr.sigfigs = 0;
2068 hdr.snaplen = s->pcap_caplen;
2069 hdr.linktype = 1;
2071 if (write(s->fd, &hdr, sizeof(hdr)) < sizeof(hdr)) {