Have "wtap_read()" set "wth->phdr.pkt_encap" to "wth->file_encap",
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 3 Mar 2004 22:24:53 +0000 (22:24 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 3 Mar 2004 22:24:53 +0000 (22:24 +0000)
commitdf6e9b4b4715773fae03134c648f4ff6c8bef6f9
treeefb280a0c42fb616c066a4c6fd5a220bce732508
parent04ed748d387bf26969bfc3204af1a2b445590be4
Have "wtap_read()" set "wth->phdr.pkt_encap" to "wth->file_encap",
rather than requiring individual capture file type handlers to do it
(unless they're doing per-packet encapsulation, in which case we check
to make sure they didn't *leave* it as WTAP_ENCAP_PER_PACKET).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10290 f5534014-38df-0310-8fa8-9805f1628bb7
18 files changed:
wiretap/5views.c
wiretap/airopeek9.c
wiretap/ascend.c
wiretap/cosine.c
wiretap/csids.c
wiretap/dbs-etherwatch.c
wiretap/etherpeek.c
wiretap/eyesdn.c
wiretap/hcidump.c
wiretap/lanalyzer.c
wiretap/libpcap.c
wiretap/netmon.c
wiretap/netxray.c
wiretap/radcom.c
wiretap/snoop.c
wiretap/visual.c
wiretap/vms.c
wiretap/wtap.c