BSD 4_3_Reno release
[unix-history] / usr / src / sys / vaxif / if_il.h
CommitLineData
da7c5cc6 1/*
0880b18e 2 * Copyright (c) 1982, 1986 Regents of the University of California.
5f9369d6 3 * All rights reserved.
da7c5cc6 4 *
1c15e888
C
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.
5f9369d6 19 *
1c15e888 20 * @(#)if_il.h 7.3 (Berkeley) 6/28/90
da7c5cc6 21 */
b065cbf0
BF
22
23/*
24 * Structure of an Ethernet header -- receive format
25 */
26struct il_rheader {
27 u_char ilr_status; /* Frame Status */
28 u_char ilr_fill1;
29 u_short ilr_length; /* Frame Length */
7f0e1e06
MK
30 u_char ilr_dhost[6]; /* Destination Host */
31 u_char ilr_shost[6]; /* Source Host */
b065cbf0
BF
32 u_short ilr_type; /* Type of packet */
33};
34
b065cbf0 35/*
8d38dbc2 36 * Structure of statistics record
b065cbf0 37 */
8d38dbc2 38struct il_stats {
b065cbf0
BF
39 u_short ils_fill1;
40 u_short ils_length; /* Length (should be 62) */
7f0e1e06 41 u_char ils_addr[6]; /* Ethernet Address */
b065cbf0
BF
42 u_short ils_frames; /* Number of Frames Received */
43 u_short ils_rfifo; /* Number of Frames in Receive FIFO */
44 u_short ils_xmit; /* Number of Frames Transmitted */
45 u_short ils_xcollis; /* Number of Excess Collisions */
46 u_short ils_frag; /* Number of Fragments Received */
47 u_short ils_lost; /* Number of Times Frames Lost */
48 u_short ils_multi; /* Number of Multicasts Accepted */
49 u_short ils_rmulti; /* Number of Multicasts Rejected */
50 u_short ils_crc; /* Number of CRC Errors */
51 u_short ils_align; /* Number of Alignment Errors */
52 u_short ils_collis; /* Number of Collisions */
53 u_short ils_owcollis; /* Number of Out-of-window Collisions */
54 u_short ils_fill2[8];
55 char ils_module[8]; /* Module ID */
56 char ils_firmware[8]; /* Firmware ID */
57};
58
59/*
60 * Structure of Collision Delay Time Record
61 */
62struct il_collis {
63 u_short ilc_fill1;
64 u_short ilc_length; /* Length (should be 0-32) */
65 u_short ilc_delay[16]; /* Delay Times */
66};