A zero snaplen means "snaplen unknown", as in "the file format from
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 30 Aug 2011 06:01:44 +0000 (06:01 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 30 Aug 2011 06:01:44 +0000 (06:01 +0000)
commit9caebcf6cc80ad3367654b914c6e18e2c3e05e2e
tree8bcda33607619831fbc6396e2df70365f3e3bc4c
parent6dd93d05f0394cb31a8dc155e9d41a36973b01b6
A zero snaplen means "snaplen unknown", as in "the file format from
which we read the data to be written doesn't record the snapshot
length".  A snapshot length of 0 in a pcap or pcap-ng file is not
handled well by many programs reading those files; for pcap files, we
write out WTAP_MAX_PACKET_SIZE as the snapshot length in that case, so
do so for pcap-ng files as well.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38790 f5534014-38df-0310-8fa8-9805f1628bb7
wiretap/pcapng.c