17c478bd9Sstevel@tonic-gate #ifndef	_IF_ETHER_H
27c478bd9Sstevel@tonic-gate #define	_IF_ETHER_H
37c478bd9Sstevel@tonic-gate 
47c478bd9Sstevel@tonic-gate /*
57c478bd9Sstevel@tonic-gate    I'm moving towards the defined names in linux/if_ether.h for clarity.
67c478bd9Sstevel@tonic-gate    The confusion between 60/64 and 1514/1518 arose because the NS8390
77c478bd9Sstevel@tonic-gate    counts the 4 byte frame checksum in the incoming packet, but not
87c478bd9Sstevel@tonic-gate    in the outgoing packet. 60/1514 are the correct numbers for most
97c478bd9Sstevel@tonic-gate    if not all of the other NIC controllers.
107c478bd9Sstevel@tonic-gate */
117c478bd9Sstevel@tonic-gate 
127c478bd9Sstevel@tonic-gate #define ETH_ALEN		6	/* Size of Ethernet address */
137c478bd9Sstevel@tonic-gate #define ETH_HLEN		14	/* Size of ethernet header */
147c478bd9Sstevel@tonic-gate #define	ETH_ZLEN		60	/* Minimum packet */
157c478bd9Sstevel@tonic-gate #define	ETH_FRAME_LEN		1514	/* Maximum packet */
167c478bd9Sstevel@tonic-gate #define ETH_DATA_ALIGN		2	/* Amount needed to align the data after an ethernet header */
177c478bd9Sstevel@tonic-gate #ifndef	ETH_MAX_MTU
187c478bd9Sstevel@tonic-gate #define	ETH_MAX_MTU		(ETH_FRAME_LEN-ETH_HLEN)
197c478bd9Sstevel@tonic-gate #endif
207c478bd9Sstevel@tonic-gate 
217c478bd9Sstevel@tonic-gate #endif	/* _IF_ETHER_H */
22