Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/wiretap 5views.c 5views.h airopeek9.c airope
Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
From: guy@xxxxxxxxxxxx (Guy Harris)
Date: Sun, 25 Jan 2004 15:55:19 -0600 (CST)
guy 2004/01/25 15:55:19 CST Modified files: wiretap 5views.c 5views.h airopeek9.c airopeek9.h ascend-grammar.y ascend-int.h ascend.c ascend.h cosine.c cosine.h csids.c csids.h dbs-etherwatch.c dbs-etherwatch.h erf.c erf.h etherpeek.c etherpeek.h file_access.c hcidump.c hcidump.h i4btrace.c i4btrace.h iptrace.c iptrace.h lanalyzer.c lanalyzer.h libpcap.c libpcap.h netmon.c netmon.h nettl.c nettl.h network_instruments.c network_instruments.h netxray.c netxray.h ngsniffer.c ngsniffer.h pppdump.c pppdump.h radcom.c radcom.h snoop.c snoop.h toshiba.c toshiba.h visual.c visual.h vms.c vms.h wtap-int.h wtap.c wtap.h Log: Have the Wiretap open, read, and seek-and-read routines return, in addition to an error code, an error info string, for WTAP_ERR_UNSUPPORTED, WTAP_ERR_UNSUPPORTED_ENCAP, and WTAP_ERR_BAD_RECORD errors. Replace the error messages logged with "g_message()" for those errors with g_strdup()ed or g_strdup_printf()ed strings returned as the error info string, and change the callers of those routines to, for those errors, put the info string into the printed message or alert box for the error. Add messages for cases where those errors were returned without printing an additional message. Nobody uses the error code from "cf_read()" - "cf_read()" puts up the alert box itself for failures; get rid of the error code, so it just returns a success/failure indication. Rename "file_read_error_message()" to "cf_read_error_message()", as it handles read errors from Wiretap, and have it take an error info string as an argument. (That handles a lot of the work of putting the info string into the error message.) Make some variables in "ascend-grammar.y" static. Check the return value of "erf_read_header()" in "erf_seek_read()". Get rid of an unused #define in "i4btrace.c". Revision Changes Path 1.4 +18 -12 ethereal/wiretap/5views.c 1.2 +2 -2 ethereal/wiretap/5views.h 1.4 +14 -9 ethereal/wiretap/airopeek9.c 1.2 +2 -2 ethereal/wiretap/airopeek9.h 1.26 +9 -8 ethereal/wiretap/ascend-grammar.y 1.11 +5 -1 ethereal/wiretap/ascend-int.h 1.32 +14 -8 ethereal/wiretap/ascend.c 1.10 +2 -2 ethereal/wiretap/ascend.h 1.8 +24 -14 ethereal/wiretap/cosine.c 1.3 +2 -2 ethereal/wiretap/cosine.h 1.16 +12 -6 ethereal/wiretap/csids.c 1.4 +2 -2 ethereal/wiretap/csids.h 1.15 +31 -12 ethereal/wiretap/dbs-etherwatch.c 1.5 +2 -2 ethereal/wiretap/dbs-etherwatch.h 1.7 +18 -11 ethereal/wiretap/erf.c 1.2 +2 -2 ethereal/wiretap/erf.h 1.26 +20 -10 ethereal/wiretap/etherpeek.c 1.4 +2 -2 ethereal/wiretap/etherpeek.h 1.9 +5 -4 ethereal/wiretap/file_access.c 1.3 +9 -6 ethereal/wiretap/hcidump.c 1.2 +2 -2 ethereal/wiretap/hcidump.h 1.24 +12 -8 ethereal/wiretap/i4btrace.c 1.4 +2 -2 ethereal/wiretap/i4btrace.h 1.50 +18 -14 ethereal/wiretap/iptrace.c 1.8 +2 -2 ethereal/wiretap/iptrace.h 1.46 +15 -11 ethereal/wiretap/lanalyzer.c 1.9 +2 -2 ethereal/wiretap/lanalyzer.h 1.108 +44 -40 ethereal/wiretap/libpcap.c 1.15 +2 -2 ethereal/wiretap/libpcap.h 1.68 +21 -17 ethereal/wiretap/netmon.c 1.12 +2 -2 ethereal/wiretap/netmon.h 1.34 +15 -12 ethereal/wiretap/nettl.c 1.10 +2 -2 ethereal/wiretap/nettl.h 1.7 +17 -14 ethereal/wiretap/network_instruments.c 1.5 +2 -2 ethereal/wiretap/network_instruments.h 1.87 +21 -17 ethereal/wiretap/netxray.c 1.12 +2 -2 ethereal/wiretap/netxray.h 1.113 +33 -30 ethereal/wiretap/ngsniffer.c 1.13 +2 -2 ethereal/wiretap/ngsniffer.h 1.25 +22 -14 ethereal/wiretap/pppdump.c 1.4 +2 -2 ethereal/wiretap/pppdump.h 1.44 +10 -7 ethereal/wiretap/radcom.c 1.8 +2 -2 ethereal/wiretap/radcom.h 1.68 +23 -19 ethereal/wiretap/snoop.c 1.13 +2 -2 ethereal/wiretap/snoop.h 1.29 +27 -15 ethereal/wiretap/toshiba.c 1.6 +2 -3 ethereal/wiretap/toshiba.h 1.15 +14 -11 ethereal/wiretap/visual.c 1.6 +2 -2 ethereal/wiretap/visual.h 1.21 +25 -15 ethereal/wiretap/vms.c 1.3 +2 -2 ethereal/wiretap/vms.h 1.44 +3 -3 ethereal/wiretap/wtap-int.h 1.87 +8 -7 ethereal/wiretap/wtap.c 1.148 +9 -5 ethereal/wiretap/wtap.h
- Prev by Date: [Ethereal-cvs] cvs commit: ethereal/gtk file_dlg.c main.c menu.c rtp_analysis.c tcp_graph.c
- Next by Date: [Ethereal-cvs] cvs commit: ethereal/gtk main.c
- Previous by thread: [Ethereal-cvs] cvs commit: ethereal/gtk file_dlg.c main.c menu.c rtp_analysis.c tcp_graph.c
- Next by thread: [Ethereal-cvs] cvs commit: ethereal editcap.c mergecap.c
- Index(es):