tcpdump mailing list archives

Re: savefile.c patch


From: "Gisle Vanem" <giva () bgnett no>
Date: Thu, 27 May 2004 17:06:30 +0200

Since pcap_dump_close() doesn't have a pcap_t argument, where should
the oldmode come from? Can we have two module globals; oldmode_stdin, 
oldmode_stdout, assuming stdin/stdout won't be opened for capture more 
than once?

I've added a 'long filemode' to 'struct pcap' (long since O_BINARY is 0x8000
on some targets and 16-bit DOS/Win is still used, *not*). Also some heuristics 
for restoring the mode in pcap_dump_close(). Updated patch attached.

--gv

Attachment: diff.txt
Description:

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.

Current thread: