xref: /titanic_52/usr/src/grub/grub-0.97/netboot/if_ether.h (revision ac88567a7a5bb7f01cf22cf366bc9d6203e24d7a)
1 #ifndef	_IF_ETHER_H
2 #define	_IF_ETHER_H
3 
4 /*
5    I'm moving towards the defined names in linux/if_ether.h for clarity.
6    The confusion between 60/64 and 1514/1518 arose because the NS8390
7    counts the 4 byte frame checksum in the incoming packet, but not
8    in the outgoing packet. 60/1514 are the correct numbers for most
9    if not all of the other NIC controllers.
10 */
11 
12 #define ETH_ALEN		6	/* Size of Ethernet address */
13 #define ETH_HLEN		14	/* Size of ethernet header */
14 #define	ETH_ZLEN		60	/* Minimum packet */
15 #define	ETH_FRAME_LEN		1514	/* Maximum packet */
16 #define ETH_DATA_ALIGN		2	/* Amount needed to align the data after an ethernet header */
17 #ifndef	ETH_MAX_MTU
18 #define	ETH_MAX_MTU		(ETH_FRAME_LEN-ETH_HLEN)
19 #endif
20 
21 #endif	/* _IF_ETHER_H */
22