diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-12-12 10:36:21 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-12-12 10:36:21 -0800 |
commit | 7068209574374db8934ceaaac8f92e5eb5c62880 (patch) | |
tree | e967726d8cba09b29b68e09b77a9be62ff92be7a /print-llc.c | |
parent | a95802aa0d8731412a9b5e621692e594046605bd (diff) | |
download | tcpdump-7068209574374db8934ceaaac8f92e5eb5c62880.tar.gz |
Use nd_ types in 802.x and FDDI headers.
Use EXTRACT_U_1() as required by those changes. Remove
no-longer-necessary & operators from other EXTRACT_ calls.
While we're at it, add MAC_ADDR_LEN to netdissect.h, and use it instead
of ETHER_ADDR_LEN; eliminate ETHER_ADDR_LEN.
Move the maximum Ethernet length field value to ethertype.h, under the
name MAX_ETHERNET_LENGTH_VAL.
Move the Ethernet header structure, and the #define for the Ethernet
header length, to print-ether.c; in non-Ethernet dissectors that were
using the Ethernet header structure, just declare two nd_mac_addr
variables for the source and destination MAC addresses and use them
instead of the Ethernet header (we don't need the type field there).
These changes leave nothing in ether.h, so eliminate it.
Diffstat (limited to 'print-llc.c')
-rw-r--r-- | print-llc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/print-llc.c b/print-llc.c index f009f1ae..cd368b3f 100644 --- a/print-llc.c +++ b/print-llc.c @@ -210,11 +210,11 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, /* * This is an Ethernet_802.3 IPX frame; it has an * 802.3 header (i.e., an Ethernet header where the - * type/length field is <= ETHERMTU, i.e. it's a length - * field, not a type field), but has no 802.2 header - - * the IPX packet starts right after the Ethernet header, - * with a signature of two bytes of 0xFF (which is - * LLCSAP_GLOBAL). + * type/length field is <= MAX_ETHERNET_LENGTH_VAL, + * i.e. it's a length field, not a type field), but + * has no 802.2 header - the IPX packet starts right + * after the Ethernet header, with a signature of two + * bytes of 0xFF (which is LLCSAP_GLOBAL). * * (It might also have been an Ethernet_802.3 IPX at * one time, but got bridged onto another network, |