Lines Matching defs:sf_hdr
133 struct pcap_sf_pkthdr sf_hdr;
158 memset(&sf_hdr, 0, sizeof(sf_hdr));
160 sf_hdr.ts.tv_sec = tv.tv_sec;
161 sf_hdr.ts.tv_usec = tv.tv_usec;
166 sf_hdr.caplen = sf_hdr.len = sizeof(ip);
169 sf_hdr.caplen = sf_hdr.len = sizeof(ip6);
172 sf_hdr.caplen += sizeof(af) + sizeof(uh) + msg->l;
173 sf_hdr.len += sizeof(af) + sizeof(uh) + msg->l;
174 if (write(fd, &sf_hdr, sizeof(sf_hdr)) < sizeof(sf_hdr))