Sometimes Ethernet captures include an FCS at the end of the packet.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 21 Aug 2003 21:05:30 +0000 (21:05 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 21 Aug 2003 21:05:30 +0000 (21:05 +0000)
commitd1935d7e72cd74730274b3fb65575b3913c52e0e
tree03b7a126984ab3bcf7d7f3ff6189176d3aefe560
parenta19457e30034cd139a03b26da94722be6d5c4062
Sometimes Ethernet captures include an FCS at the end of the packet.

An Ethernet trailer is only needed to pad the packet to 60 bytes of
Ethernet header plus payload; if the packet has what appears to be a
trailer, and it's 4 or more bytes (i.e., long enough to include an FCS),
and the Ethernet frame was claimed to have 64 or more bytes (i.e., it
has at least an FCS worth of data more than the minimum 60 bytes),
assume that the last 4 bytes of the frame were an FCS.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8207 f5534014-38df-0310-8fa8-9805f1628bb7
packet-eth.c
packet-eth.h
packet-ethertype.c
packet-ieee8023.c