xref: /csrg-svn/sys/netinet/if_ether.h (revision 9744)
1*9744Ssam /*	if_ether.h	4.1	82/12/16	*/
2*9744Ssam 
3*9744Ssam /*
4*9744Ssam  * Structure of a 10Mb/s Ethernet header.
5*9744Ssam  */
6*9744Ssam struct	eth_header {
7*9744Ssam 	u_char	eth_dhost[6];
8*9744Ssam 	u_char	eth_shost[6];
9*9744Ssam 	u_short	eth_type;
10*9744Ssam };
11*9744Ssam 
12*9744Ssam #define	ETHPUP_PUPTYPE	4		/* PUP protocol */
13*9744Ssam #define	ETHPUP_IPTYPE	8		/* IP protocol */
14*9744Ssam 
15*9744Ssam /*
16*9744Ssam  * The ETHPUP_NTRAILER packet types starting at ETHPUP_TRAIL have
17*9744Ssam  * (type-ETHPUP_TRAIL)*512 bytes of data followed
18*9744Ssam  * by a PUP type (as given above) and then the (variable-length) header.
19*9744Ssam  */
20*9744Ssam #define	ETHPUP_TRAIL	16		/* Trailer PUP */
21*9744Ssam #define	ETHPUP_NTRAILER	16
22