pflogd.c | 470 struct pcap_sf_pkthdr sf_hdr; local in function:dump_packet_nobuf 480 sf_hdr.ts.tv_sec = h->ts.tv_sec; 481 sf_hdr.ts.tv_usec = h->ts.tv_usec; 482 sf_hdr.caplen = h->caplen; 483 sf_hdr.len = h->len; 489 if (fwrite(&sf_hdr, sizeof(sf_hdr), 1, f) != 1) { 497 if (pos < sizeof(sf_hdr) || 498 ftruncate(fileno(f), pos - sizeof(sf_hdr))) { 571 struct pcap_sf_pkthdr sf_hdr; local in function:dump_packet [all...] |