In a Network Monitor capture file, get the starting offsets of frames
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 22 Mar 2000 07:06:59 +0000 (07:06 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 22 Mar 2000 07:06:59 +0000 (07:06 +0000)
commit12f22966cb2cdec99f1cfe67cf43661c6e730dcb
tree900b9afc981b65ab61b957599a56dc60cf034b7b
parent70beb171698e7b4fe41ec373028c1f2004d5bfb5
In a Network Monitor capture file, get the starting offsets of frames
from the frame table - Network Monitor 2.x, at least, doesn't always
write frame N+1 right after frame N.

To do that, we need to mallocate a big array to hold the frame table,
and free it when we close the capture file; this requires that we have
capture-file-type-specific close routines as well as
capture-file-type-specific read routines - we let it the pointer to that
routine be null if it's not needed.  Given that, we might as well get
rid of the switch statement in "wtap_close()", in favor of using
capture-file-type-specific close routines, as per the comment before
that switch statement.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1740 f5534014-38df-0310-8fa8-9805f1628bb7
wiretap/ascend.c
wiretap/file.c
wiretap/lanalyzer.c
wiretap/libpcap.c
wiretap/netmon.c
wiretap/nettl.c
wiretap/netxray.c
wiretap/ngsniffer.c
wiretap/radcom.c
wiretap/wtap.c
wiretap/wtap.h