]> The Tcpdump Group git mirrors - tcpdump/commit
The last 2 bytes of an Ethernet header are the "length/type field".
authorGuy Harris <[email protected]>
Thu, 17 Dec 2015 05:04:13 +0000 (21:04 -0800)
committerGuy Harris <[email protected]>
Thu, 17 Dec 2015 05:04:13 +0000 (21:04 -0800)
commit08e40fdbd6c00085516802a49db62dff0f288e8b
tree82f3fdb00a3934d47a4bd25abebdcf3d9fd22141
parentb713410ff2fc96e181987be1556a8198f6ceabb7
The last 2 bytes of an Ethernet header are the "length/type field".

Call it that, to indicate that it's not necessarily a type field.

While we're at it, get rid of references to "DEC/Intel/Xerox" and
"802.3" Ethernet headers in comments; since 802.3y, the 802.3 standard
supports both "DIX" frames, with a type field, and earlier 802.3 frames,
with a length field, so there's only one version of Ethernet, 802.3,
which supports frames with type fields and frames with length fields.
ether.h
print-ether.c