Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/wiretap ascend.c csids.c etherpeek.c file.c
guy 2001/03/10 00:34:00 CST
Modified files:
wiretap ascend.c csids.c etherpeek.c file.c
i4btrace.c iptrace.c lanalyzer.c
libpcap.c netmon.c nettl.c netxray.c
ngsniffer.c pppdump.c radcom.c snoop.c
toshiba.c
Log:
Obliging every capture file reader's "open()" routine to seek to the
beginning of the file before reading anything from the file is bogus -
do that in the loop that tries each of the open routines, instead.
(They may have to reset the seek pointer later if, for example, the
capture file begins with the first packet, and the "open()" routine
looks at that packet to try to guess whether the packet is in the file
format in question.)
Set "wth->data_offset" to 0 while you're at it, so capture file readers
don't have to do that, either.
Revision Changes Path
1.23 +1 -2 ethereal/wiretap/ascend.c
1.6 +1 -3 ethereal/wiretap/csids.c
1.3 +1 -4 ethereal/wiretap/etherpeek.c
1.66 +10 -1 ethereal/wiretap/file.c
1.14 +1 -2 ethereal/wiretap/i4btrace.c
1.33 +1 -3 ethereal/wiretap/iptrace.c
1.27 +1 -3 ethereal/wiretap/lanalyzer.c
1.46 +1 -3 ethereal/wiretap/libpcap.c
1.37 +1 -2 ethereal/wiretap/netmon.c
1.19 +1 -2 ethereal/wiretap/nettl.c
1.37 +1 -3 ethereal/wiretap/netxray.c
1.63 +1 -3 ethereal/wiretap/ngsniffer.c
1.8 +1 -2 ethereal/wiretap/pppdump.c
1.29 +1 -2 ethereal/wiretap/radcom.c
1.34 +1 -3 ethereal/wiretap/snoop.c
1.15 +2 -4 ethereal/wiretap/toshiba.c