xref: /csrg-svn/sys/vax/if/if_en.h (revision 44559)
123291Smckusick /*
229278Smckusick  * Copyright (c) 1982, 1986 Regents of the University of California.
335319Sbostic  * All rights reserved.
423291Smckusick  *
5*44559Sbostic  * %sccs.include.redist.c%
635319Sbostic  *
7*44559Sbostic  *	@(#)if_en.h	7.3 (Berkeley) 06/28/90
823291Smckusick  */
95145Swnj 
105145Swnj /*
115145Swnj  * Structure of a Ethernet header.
125145Swnj  */
135145Swnj struct	en_header {
145145Swnj 	u_char	en_shost;
155145Swnj 	u_char	en_dhost;
165145Swnj 	u_short	en_type;
175145Swnj };
185145Swnj 
1912353Ssam #define	ENTYPE_PUP	0x0200		/* PUP protocol */
2012353Ssam #define	ENTYPE_IP	0x0201		/* IP protocol */
215172Swnj 
225145Swnj /*
2312353Ssam  * The ENTYPE_NTRAILER packet types starting at
2412353Ssam  * ENTYPE_TRAIL have (type-ENTYPE_TRAIL)*512 bytes
2512353Ssam  * of data followed by an Ethernet type (as given above)
2612353Ssam  * and then the (variable-length) header.
275145Swnj  */
2812353Ssam #define	ENTYPE_TRAIL	0x1000		/* Trailer type */
2912353Ssam #define	ENTYPE_NTRAILER	16
3019866Skarels 
3119866Skarels #define EN_BROADCAST	0		/* Hardware broadcast address */
32