Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/wiretap ascend.c csids.c dbs-etherwatch.c fi
guy 2002/03/04 23:58:44 CST
Modified files:
wiretap ascend.c csids.c dbs-etherwatch.c file.c
i4btrace.c iptrace.c netmon.c nettl.c
ngsniffer.c pppdump.c radcom.c snoop.c
toshiba.c visual.c vms.c wtap-int.h
wtap.c wtap.h
Log:
Have "wtap_seek_read()" return 0 on success and -1 on failure, and take
an "err" argument that points to an "int" into which to put an error
code if it fails.
Check for errors in one call to it, and note that we should do so in
other places.
In the "wtap_seek_read()" call in the TCP graphing code, don't overwrite
"cfile.pseudo_header", and make the buffer into which we read the data
WTAP_MAX_PACKET_SIZE bytes, as it should be.
In some of the file readers for text files, check for errors from the
"parse the record header" and "parse the hex dump" routines when reading
sequentially.
In "csids_seek_read()", fix some calls to "file_error()" to check the
error on the random stream (that being what we're reading).
Revision Changes Path
1.28 +12 -5 ethereal/wiretap/ascend.c
1.12 +19 -15 ethereal/wiretap/csids.c
1.6 +16 -9 ethereal/wiretap/dbs-etherwatch.c
1.84 +16 -4 ethereal/wiretap/file.c
1.18 +14 -8 ethereal/wiretap/i4btrace.c
1.37 +31 -15 ethereal/wiretap/iptrace.c
1.50 +9 -7 ethereal/wiretap/netmon.c
1.24 +16 -8 ethereal/wiretap/nettl.c
1.75 +17 -11 ethereal/wiretap/ngsniffer.c
1.16 +12 -6 ethereal/wiretap/pppdump.c
1.34 +15 -8 ethereal/wiretap/radcom.c
1.43 +9 -7 ethereal/wiretap/snoop.c
1.22 +17 -10 ethereal/wiretap/toshiba.c
1.4 +18 -6 ethereal/wiretap/visual.c
1.9 +14 -9 ethereal/wiretap/vms.c
1.21 +2 -3 ethereal/wiretap/wtap-int.h
1.62 +6 -4 ethereal/wiretap/wtap.c
1.106 +3 -3 ethereal/wiretap/wtap.h