|
|
1.1 root 1: /*
2: * Structure of an Ethernet header -- transmit format
3: */
4: struct il_xheader {
5: u_char ilx_dhost[6]; /* Destination Host */
6: u_short ilx_type; /* Type of packet */
7: };
8:
9: /*
10: * Structure of an Ethernet header -- receive format
11: */
12: struct il_rheader {
13: u_char ilr_status; /* Frame Status */
14: u_char ilr_fill1;
15: u_short ilr_length; /* Frame Length */
16: u_char ilr_dhost[6]; /* Destination Host */
17: u_char ilr_shost[6]; /* Source Host */
18: u_short ilr_type; /* Type of packet */
19: };
20:
21: #define ILPUP_PUPTYPE 0x0400 /* PUP protocol */
22: #define ILPUP_IPTYPE 0x0800 /* IP protocol */
23: #define ILCHAOS_TYPE 0x0408 /* CHAOS protocol */
24: #define ILADDR_TYPE 0x0608 /* Address resolution (a la DCP) */
25: /*
26: * The ILPUP_NTRAILER packet types starting at ILPUP_TRAIL have
27: * (type-ILPUP_TRAIL)*512 bytes of data followed
28: * by a PUP type (as given above) and then the (variable-length) header.
29: */
30: #define ILPUP_TRAIL 0x1000 /* Trailer PUP */
31: #define ILPUP_NTRAILER 16
32:
33: /*
34: * Structure of Statistics Record
35: */
36: struct il_stat {
37: u_short ils_fill1;
38: u_short ils_length; /* Length (should be 62) */
39: u_char ils_addr[6]; /* Ethernet Address */
40: u_short ils_frames; /* Number of Frames Received */
41: u_short ils_rfifo; /* Number of Frames in Receive FIFO */
42: u_short ils_xmit; /* Number of Frames Transmitted */
43: u_short ils_xcollis; /* Number of Excess Collisions */
44: u_short ils_frag; /* Number of Fragments Received */
45: u_short ils_lost; /* Number of Times Frames Lost */
46: u_short ils_multi; /* Number of Multicasts Accepted */
47: u_short ils_rmulti; /* Number of Multicasts Rejected */
48: u_short ils_crc; /* Number of CRC Errors */
49: u_short ils_align; /* Number of Alignment Errors */
50: u_short ils_collis; /* Number of Collisions */
51: u_short ils_owcollis; /* Number of Out-of-window Collisions */
52: u_short ils_fill2[8];
53: char ils_module[8]; /* Module ID */
54: char ils_firmware[8]; /* Firmware ID */
55: };
56:
57: /*
58: * Structure of Collision Delay Time Record
59: */
60: struct il_collis {
61: u_short ilc_fill1;
62: u_short ilc_length; /* Length (should be 0-32) */
63: u_short ilc_delay[16]; /* Delay Times */
64: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.