123291Smckusick /* 2*29278Smckusick * Copyright (c) 1982, 1986 Regents of the University of California. 323291Smckusick * All rights reserved. The Berkeley software License Agreement 423291Smckusick * specifies the terms and conditions for redistribution. 523291Smckusick * 6*29278Smckusick * @(#)if_en.h 7.1 (Berkeley) 06/05/86 723291Smckusick */ 85145Swnj 95145Swnj /* 105145Swnj * Structure of a Ethernet header. 115145Swnj */ 125145Swnj struct en_header { 135145Swnj u_char en_shost; 145145Swnj u_char en_dhost; 155145Swnj u_short en_type; 165145Swnj }; 175145Swnj 1812353Ssam #define ENTYPE_PUP 0x0200 /* PUP protocol */ 1912353Ssam #define ENTYPE_IP 0x0201 /* IP protocol */ 205172Swnj 215145Swnj /* 2212353Ssam * The ENTYPE_NTRAILER packet types starting at 2312353Ssam * ENTYPE_TRAIL have (type-ENTYPE_TRAIL)*512 bytes 2412353Ssam * of data followed by an Ethernet type (as given above) 2512353Ssam * and then the (variable-length) header. 265145Swnj */ 2712353Ssam #define ENTYPE_TRAIL 0x1000 /* Trailer type */ 2812353Ssam #define ENTYPE_NTRAILER 16 2919866Skarels 3019866Skarels #define EN_BROADCAST 0 /* Hardware broadcast address */ 31