Don't write out packets that have a "captured length" bigger than we're
authorGuy Harris <guy@alum.mit.edu>
Wed, 22 Jan 2014 00:26:36 +0000 (00:26 -0000)
committerGuy Harris <guy@alum.mit.edu>
Wed, 22 Jan 2014 00:26:36 +0000 (00:26 -0000)
commit90d7c5f59b574e254bc1bb70aaaf12372fe97cc3
tree7bc8e69b7cc459b8dfef190d1b33a7cb092a7bf3
parent5c825d6a364d83dace7b6c682aa47678e89df79b
Don't write out packets that have a "captured length" bigger than we're
willing to read or that's bigger than will fit in the file format;
instead, report an error.

For the "I can't write a packet of that type in that file type" error,
report the file type in question.

svn path=/trunk/; revision=54882
23 files changed:
editcap.c
file.c
mergecap.c
tshark.c
wiretap/5views.c
wiretap/btsnoop.c
wiretap/commview.c
wiretap/erf.c
wiretap/eyesdn.c
wiretap/k12.c
wiretap/k12text.l
wiretap/lanalyzer.c
wiretap/libpcap.c
wiretap/netmon.c
wiretap/nettl.c
wiretap/network_instruments.c
wiretap/netxray.c
wiretap/ngsniffer.c
wiretap/pcapng.c
wiretap/snoop.c
wiretap/visual.c
wiretap/wtap.c
wiretap/wtap.h