Just pass on a snapshot length of 0 to the dumper.
authorGuy Harris <guy@alum.mit.edu>
Thu, 15 Nov 2018 23:25:06 +0000 (15:25 -0800)
committerGuy Harris <guy@alum.mit.edu>
Thu, 15 Nov 2018 23:25:41 +0000 (23:25 +0000)
commitad2bc773d6c777290b2485de8a43350682c438a1
tree0a2ffc89d7ded90dc1eba06867c83d61c4ea4850
parentd631c17eee0ade675f6f4a0612ce0b127e44ee72
Just pass on a snapshot length of 0 to the dumper.

It means "snapshot length unknown".

For most file formats, the snapshot length isn't recorded (even for
formats that support slicing - all they record is the on-the-network
length, and length after slicing, for each packet), so it's ignored in
the dumper.

The one exception is pcap, which records it in the file header; if it's
unknown, the pcap-writing code picks the maximum supported snapshot
length for the file's link-layer header type.

Change-Id: Ieda5dfe34c4bac63e43fdadeff31799ac3c908de
Reviewed-on: https://code.wireshark.org/review/30657
Reviewed-by: Guy Harris <guy@alum.mit.edu>
tshark.c