Latest fixes from Nesheim@cornell
[unix-history] / usr / src / sys / vax / if / if_en.h
CommitLineData
da7c5cc6
KM
1/*
2 * Copyright (c) 1982 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
6 * @(#)if_en.h 6.3 (Berkeley) %G%
7 */
ce9ee601
BJ
8
9/*
10 * Structure of a Ethernet header.
11 */
12struct en_header {
13 u_char en_shost;
14 u_char en_dhost;
15 u_short en_type;
16};
17
991f6240
SL
18#define ENTYPE_PUP 0x0200 /* PUP protocol */
19#define ENTYPE_IP 0x0201 /* IP protocol */
405c9168 20
b454c3ea 21/*
991f6240
SL
22 * The ENTYPE_NTRAILER packet types starting at
23 * ENTYPE_TRAIL have (type-ENTYPE_TRAIL)*512 bytes
24 * of data followed by an Ethernet type (as given above)
25 * and then the (variable-length) header.
ce9ee601 26 */
991f6240
SL
27#define ENTYPE_TRAIL 0x1000 /* Trailer type */
28#define ENTYPE_NTRAILER 16
7f0e1e06
MK
29
30#define EN_BROADCAST 0 /* Hardware broadcast address */