]> The Tcpdump Group git mirrors - tcpdump/commit
Use nd_ types in 802.x and FDDI headers.
authorGuy Harris <[email protected]>
Tue, 12 Dec 2017 18:36:21 +0000 (10:36 -0800)
committerGuy Harris <[email protected]>
Tue, 12 Dec 2017 18:36:21 +0000 (10:36 -0800)
commit7068209574374db8934ceaaac8f92e5eb5c62880
treee967726d8cba09b29b68e09b77a9be62ff92be7a
parenta95802aa0d8731412a9b5e621692e594046605bd
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.
24 files changed:
Makefile.in
addrtoname.c
ether.h [deleted file]
ethertype.h
netdissect.h
print-aoe.c
print-arp.c
print-cfm.c
print-ether.c
print-fddi.c
print-ipfc.c
print-isoclns.c
print-lane.c
print-llc.c
print-loopback.c
print-medsa.c
print-openflow-1.0.c
print-rrcp.c
print-sll.c
print-slow.c
print-symantec.c
print-tipc.c
print-token.c
print-vqp.c