Ferenc Wagner <[email protected]> writes:
> the -U flag is very useful, and would be even more useful if it
> flushed the output buffer after writing the header after opening
> the output file before writing out any packets.
I guess it doesn't hurt in any case; I'll add the following patch to
the upcoming 4.1-1 package:
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1205,6 +1205,10 @@
callback = dump_packet;
pcap_userdata = (u_char *)p;
}
+#ifdef HAVE_PCAP_DUMP_FLUSH
+ if (Uflag)
+ pcap_dump_flush(p);
+#endif
} else {
type = pcap_datalink(pd);
printinfo.ndo_type = 1;
--
Romain Francoise <[email protected]>
http://people.debian.org/~rfrancoise/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]