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:
- savefile.c patch Gisle Vanem (May 26)
- Re: savefile.c patch Guy Harris (May 26)
- Re: savefile.c patch Gisle Vanem (May 26)
- Re: savefile.c patch Guy Harris (May 26)
- Re: savefile.c patch Guy Harris (May 26)
- Re: savefile.c patch Gisle Vanem (May 27)
- Re: savefile.c patch Gisle Vanem (May 27)
- Re: savefile.c patch Guy Harris (May 27)
- How to extract the source name field data of the netbeui (NBF) protocol Bassam A. Al-Khaffaf (May 27)
- Re: How to extract the source name field data of Jun-ichiro itojun Hagino (May 27)
- Re: How to extract the source name field data of Bassam A. Al-Khaffaf (May 27)
- Re: How to extract the source name field data of Jun-ichiro itojun Hagino (May 28)
- Re: How to extract the source name field data of Guy Harris (May 28)
- Re: How to extract the source name field data of Guy Harris (May 30)
- libpcap tutorial Bassam A. Al-Khaffaf (May 31)
- pcab and libpcap differences? Bassam A. Al-Khaffaf (May 31)
- Re: pcab and libpcap differences? Guy Harris (May 31)
- Re: savefile.c patch Gisle Vanem (May 26)
- Re: savefile.c patch Guy Harris (May 26)