tcpdump mailing list archives

Re: Multifile patch


From: "David Laight" <David.Laight () ACULAB COM>
Date: Wed, 5 Sep 2012 08:51:11 +0100

On windows you can't pass 'FILE *' into shared libraries,
they are likely to have their own copies of the stdio
libraries - with different FILE structures.
(eg if one part is compiled with debug enabled).

In this patch, the library into which VFile is being passed is called
"the C library", i.e., with the patch, we're not passing it to
libpcap/WinPcap, we're passing it to fgets(); if you couldn't pass a
FILE * to, say, fgets(), the stdio libraries would be completely
useless.

Did I miss that this is a tcpdump change, not a pcap one :-(

        David



_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: