changes for var. length sockaddrs; new routing; mv common ether input
[unix-history] / usr / src / sys / vax / if / 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 *
5f9369d6
KB
5 * Redistribution and use in source and binary forms are permitted
6 * provided that the above copyright notice and this paragraph are
7 * duplicated in all such forms and that any documentation,
8 * advertising materials, and other materials related to such
9 * distribution and use acknowledge that the software was developed
10 * by the University of California, Berkeley. The name of the
11 * University may not be used to endorse or promote products derived
12 * from this software without specific prior written permission.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16 *
17 * @(#)if_il.h 7.2 (Berkeley) %G%
da7c5cc6 18 */
b065cbf0
BF
19
20/*
21 * Structure of an Ethernet header -- receive format
22 */
23struct il_rheader {
24 u_char ilr_status; /* Frame Status */
25 u_char ilr_fill1;
26 u_short ilr_length; /* Frame Length */
7f0e1e06
MK
27 u_char ilr_dhost[6]; /* Destination Host */
28 u_char ilr_shost[6]; /* Source Host */
b065cbf0
BF
29 u_short ilr_type; /* Type of packet */
30};
31
b065cbf0 32/*
8d38dbc2 33 * Structure of statistics record
b065cbf0 34 */
8d38dbc2 35struct il_stats {
b065cbf0
BF
36 u_short ils_fill1;
37 u_short ils_length; /* Length (should be 62) */
7f0e1e06 38 u_char ils_addr[6]; /* Ethernet Address */
b065cbf0
BF
39 u_short ils_frames; /* Number of Frames Received */
40 u_short ils_rfifo; /* Number of Frames in Receive FIFO */
41 u_short ils_xmit; /* Number of Frames Transmitted */
42 u_short ils_xcollis; /* Number of Excess Collisions */
43 u_short ils_frag; /* Number of Fragments Received */
44 u_short ils_lost; /* Number of Times Frames Lost */
45 u_short ils_multi; /* Number of Multicasts Accepted */
46 u_short ils_rmulti; /* Number of Multicasts Rejected */
47 u_short ils_crc; /* Number of CRC Errors */
48 u_short ils_align; /* Number of Alignment Errors */
49 u_short ils_collis; /* Number of Collisions */
50 u_short ils_owcollis; /* Number of Out-of-window Collisions */
51 u_short ils_fill2[8];
52 char ils_module[8]; /* Module ID */
53 char ils_firmware[8]; /* Firmware ID */
54};
55
56/*
57 * Structure of Collision Delay Time Record
58 */
59struct il_collis {
60 u_short ilc_fill1;
61 u_short ilc_length; /* Length (should be 0-32) */
62 u_short ilc_delay[16]; /* Delay Times */
63};