]> The Tcpdump Group git mirrors - tcpdump/commit
Ethernet: Print the Length/Type field as length when needed
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 16 Dec 2015 14:48:14 +0000 (15:48 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 16 Dec 2015 14:59:39 +0000 (15:59 +0100)
commitb713410ff2fc96e181987be1556a8198f6ceabb7
treebb41fbf9125ff11d1a4251edd9e1ac692c48ef6d
parent2b37556bfac8011bd6d0cefbca7343638738f616
Ethernet: Print the Length/Type field as length when needed

Reference: IEEE Std 802.3-2012
"If the value of this field is less than or equal to 1500 decimal
(05DC hexadecimal), then the Length/Type field indicates the number
of MAC client data octets contained in the subsequent MAC Client Data
field of the basic frame (Length interpretation)."

Update the output of a test accordingly.
print-ether.c
tests/lldp_cdp-ev.out