Add a new WTAP_ERR_DECOMPRESS error, and use that for errors discovered
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 21 Apr 2011 09:41:52 +0000 (09:41 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 21 Apr 2011 09:41:52 +0000 (09:41 +0000)
commitbf5d8d18e36e02f7f197738afc830e2c4341dd69
tree299ce4fc08cb26cc0c0712c6b54de9c76893e7ca
parentbf80a1d2d0395923cfd70fe3ce9a5e20b6f94466
Add a new WTAP_ERR_DECOMPRESS error, and use that for errors discovered
by the gunzipping code.  Have it also supply a err_info string, and
report it.  Have file_error() supply an err_info string.

Put "the file" - or, for WTAP_ERR_DECOMPRESS, "the compressed file", to
suggest a decompression error - into the rawshark and tshark errors,
along the lines of what other programs print.

Fix a case in the Netscaler code where we weren't fetching the error
code on a read failure.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36748 f5534014-38df-0310-8fa8-9805f1628bb7
51 files changed:
capinfos.c
capture_info.c
file.c
rawshark.c
tshark.c
wiretap/5views.c
wiretap/airopeek9.c
wiretap/ascendtext.c
wiretap/ber.c
wiretap/btsnoop.c
wiretap/commview.c
wiretap/cosine.c
wiretap/csids.c
wiretap/daintree-sna.c
wiretap/dbs-etherwatch.c
wiretap/dct3trace.c
wiretap/erf.c
wiretap/etherpeek.c
wiretap/eyesdn.c
wiretap/file_wrappers.c
wiretap/file_wrappers.h
wiretap/hcidump.c
wiretap/i4btrace.c
wiretap/ipfix.c
wiretap/iptrace.c
wiretap/iseries.c
wiretap/jpeg_jfif.c
wiretap/k12.c
wiretap/lanalyzer.c
wiretap/libpcap.c
wiretap/mpeg.c
wiretap/netmon.c
wiretap/netscaler.c
wiretap/netscreen.c
wiretap/nettl.c
wiretap/network_instruments.c
wiretap/netxray.c
wiretap/ngsniffer.c
wiretap/packetlogger.c
wiretap/pcap-common.c
wiretap/pcapng.c
wiretap/pppdump.c
wiretap/radcom.c
wiretap/snoop.c
wiretap/tnef.c
wiretap/toshiba.c
wiretap/visual.c
wiretap/vms.c
wiretap/wtap-int.h
wiretap/wtap.c
wiretap/wtap.h