123291Smckusick /* 229278Smckusick * Copyright (c) 1982, 1986 Regents of the University of California. 3*35319Sbostic * All rights reserved. 423291Smckusick * 5*35319Sbostic * Redistribution and use in source and binary forms are permitted 6*35319Sbostic * provided that the above copyright notice and this paragraph are 7*35319Sbostic * duplicated in all such forms and that any documentation, 8*35319Sbostic * advertising materials, and other materials related to such 9*35319Sbostic * distribution and use acknowledge that the software was developed 10*35319Sbostic * by the University of California, Berkeley. The name of the 11*35319Sbostic * University may not be used to endorse or promote products derived 12*35319Sbostic * from this software without specific prior written permission. 13*35319Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14*35319Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15*35319Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16*35319Sbostic * 17*35319Sbostic * @(#)if_en.h 7.2 (Berkeley) 08/04/88 1823291Smckusick */ 195145Swnj 205145Swnj /* 215145Swnj * Structure of a Ethernet header. 225145Swnj */ 235145Swnj struct en_header { 245145Swnj u_char en_shost; 255145Swnj u_char en_dhost; 265145Swnj u_short en_type; 275145Swnj }; 285145Swnj 2912353Ssam #define ENTYPE_PUP 0x0200 /* PUP protocol */ 3012353Ssam #define ENTYPE_IP 0x0201 /* IP protocol */ 315172Swnj 325145Swnj /* 3312353Ssam * The ENTYPE_NTRAILER packet types starting at 3412353Ssam * ENTYPE_TRAIL have (type-ENTYPE_TRAIL)*512 bytes 3512353Ssam * of data followed by an Ethernet type (as given above) 3612353Ssam * and then the (variable-length) header. 375145Swnj */ 3812353Ssam #define ENTYPE_TRAIL 0x1000 /* Trailer type */ 3912353Ssam #define ENTYPE_NTRAILER 16 4019866Skarels 4119866Skarels #define EN_BROADCAST 0 /* Hardware broadcast address */ 42