Commit | Line | Data |
---|---|---|
b332a7f5 | 1 | /* if_ether.h 4.3 82/12/16 */ |
66b2ba82 SL |
2 | |
3 | /* | |
4 | * Structure of a 10Mb/s Ethernet header. | |
5 | */ | |
3fa8d9bb SL |
6 | struct ether_header { |
7 | u_char ether_dhost[6]; | |
8 | u_char ether_shost[6]; | |
9 | u_short ether_type; | |
66b2ba82 SL |
10 | }; |
11 | ||
b332a7f5 SL |
12 | #define ETHERPUP_PUPTYPE 0x0400 /* PUP protocol */ |
13 | #define ETHERPUP_IPTYPE 0x0800 /* IP protocol */ | |
66b2ba82 SL |
14 | |
15 | /* | |
3fa8d9bb SL |
16 | * The ETHERPUP_NTRAILER packet types starting at ETHERPUP_TRAIL have |
17 | * (type-ETHERPUP_TRAIL)*512 bytes of data followed | |
66b2ba82 SL |
18 | * by a PUP type (as given above) and then the (variable-length) header. |
19 | */ | |
b332a7f5 | 20 | #define ETHERPUP_TRAIL 0x1000 /* Trailer PUP */ |
3fa8d9bb SL |
21 | #define ETHERPUP_NTRAILER 16 |
22 | ||
23 | #define ETHERMTU 1500 | |
24 | #define ETHERMIN (60-14) |