|
|
1.1 root 1: /*
2: * Copyright (c) 1982, 1986 Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution is only permitted until one year after the first shipment
6: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and
7: * binary forms are permitted provided that: (1) source distributions retain
8: * this entire copyright notice and comment, and (2) distributions including
9: * binaries display the following acknowledgement: This product includes
10: * software developed by the University of California, Berkeley and its
11: * contributors'' in the documentation or other materials provided with the
12: * distribution and in all advertising materials mentioning features or use
13: * of this software. Neither the name of the University nor the names of
14: * its contributors may be used to endorse or promote products derived from
15: * this software without specific prior written permission.
16: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
17: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
18: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19: *
20: * @(#)if_en.h 7.3 (Berkeley) 6/28/90
21: */
22:
23: /*
24: * Structure of a Ethernet header.
25: */
26: struct en_header {
27: u_char en_shost;
28: u_char en_dhost;
29: u_short en_type;
30: };
31:
32: #define ENTYPE_PUP 0x0200 /* PUP protocol */
33: #define ENTYPE_IP 0x0201 /* IP protocol */
34:
35: /*
36: * The ENTYPE_NTRAILER packet types starting at
37: * ENTYPE_TRAIL have (type-ENTYPE_TRAIL)*512 bytes
38: * of data followed by an Ethernet type (as given above)
39: * and then the (variable-length) header.
40: */
41: #define ENTYPE_TRAIL 0x1000 /* Trailer type */
42: #define ENTYPE_NTRAILER 16
43:
44: #define EN_BROADCAST 0 /* Hardware broadcast address */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.