Remove the "union pseudo_header" from the "frame_data" structure;
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 18 May 2000 09:09:50 +0000 (09:09 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 18 May 2000 09:09:50 +0000 (09:09 +0000)
commit1c0147c07e412c37a92c896c517dd1ba362bb4dc
treeb3976154972b7e5a4d8ee25e4c4f2f5bef77d2f0
parentd3bd53ff459e4ef25fc5e5184b23f3cc8b29ed3f
Remove the "union pseudo_header" from the "frame_data" structure;
there's no need to keep it around in memory - when the frame data is
read in when handing a frame, read in the information, if any, necessary
to reconstruct the frame header, and reconstruct it.  This saves some
memory.

This requires that the seek-and-read function be implemented inside
Wiretap, and that the Wiretap handle remain open even after we've
finished reading the file sequentially.

This also points out that we can't really do X.25-over-Ethernet
correctly, as we don't know where the direction (DTE->DCE or DCE->DTE)
flag is stored; it's not clear how the Ethernet type 0x0805 for X.25
Layer 3 is supposed to be handled in any case.  We eliminate
X.25-over-Ethernet support (until we find out what we're supposed to
do).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1975 f5534014-38df-0310-8fa8-9805f1628bb7
41 files changed:
capture.c
editcap.c
file.c
file.h
gtk/main.c
gtk/packet_win.c
packet-ascend.c
packet-ascend.h
packet-atm.c
packet-atm.h
packet-lapb.c
packet-lapb.h
packet-lapd.c
packet-lapd.h
packet-v120.c
packet-v120.h
packet-x25.c
packet-x25.h
packet.c
packet.h
tethereal.c
wiretap/ascend-grammar.y
wiretap/ascend-int.h
wiretap/ascend-scanner.l
wiretap/ascend.c
wiretap/ascend.h
wiretap/file.c
wiretap/i4btrace.c
wiretap/iptrace.c
wiretap/lanalyzer.c
wiretap/libpcap.c
wiretap/netmon.c
wiretap/nettl.c
wiretap/netxray.c
wiretap/ngsniffer.c
wiretap/radcom.c
wiretap/snoop.c
wiretap/toshiba.c
wiretap/toshiba.h
wiretap/wtap.c
wiretap/wtap.h