xref: /csrg-svn/sys/vax/if/if_il.h (revision 44561)
123298Smckusick /*
229284Smckusick  * Copyright (c) 1982, 1986 Regents of the University of California.
335323Sbostic  * All rights reserved.
423298Smckusick  *
5*44561Sbostic  * %sccs.include.redist.c%
635323Sbostic  *
7*44561Sbostic  *	@(#)if_il.h	7.3 (Berkeley) 06/28/90
823298Smckusick  */
96894Sfeldman 
106894Sfeldman /*
116894Sfeldman  * Structure of an Ethernet header -- receive format
126894Sfeldman  */
136894Sfeldman struct	il_rheader {
146894Sfeldman 	u_char	ilr_status;		/* Frame Status */
156894Sfeldman 	u_char	ilr_fill1;
166894Sfeldman 	u_short	ilr_length;		/* Frame Length */
1719866Skarels 	u_char	ilr_dhost[6];		/* Destination Host */
1819866Skarels 	u_char	ilr_shost[6];		/* Source Host */
196894Sfeldman 	u_short	ilr_type;		/* Type of packet */
206894Sfeldman };
216894Sfeldman 
226894Sfeldman /*
237262Ssam  * Structure of statistics record
246894Sfeldman  */
257262Ssam struct	il_stats {
266894Sfeldman 	u_short	ils_fill1;
276894Sfeldman 	u_short	ils_length;		/* Length (should be 62) */
2819866Skarels 	u_char	ils_addr[6];		/* Ethernet Address */
296894Sfeldman 	u_short	ils_frames;		/* Number of Frames Received */
306894Sfeldman 	u_short	ils_rfifo;		/* Number of Frames in Receive FIFO */
316894Sfeldman 	u_short	ils_xmit;		/* Number of Frames Transmitted */
326894Sfeldman 	u_short	ils_xcollis;		/* Number of Excess Collisions */
336894Sfeldman 	u_short	ils_frag;		/* Number of Fragments Received */
346894Sfeldman 	u_short	ils_lost;		/* Number of Times Frames Lost */
356894Sfeldman 	u_short	ils_multi;		/* Number of Multicasts Accepted */
366894Sfeldman 	u_short	ils_rmulti;		/* Number of Multicasts Rejected */
376894Sfeldman 	u_short	ils_crc;		/* Number of CRC Errors */
386894Sfeldman 	u_short	ils_align;		/* Number of Alignment Errors */
396894Sfeldman 	u_short	ils_collis;		/* Number of Collisions */
406894Sfeldman 	u_short	ils_owcollis;		/* Number of Out-of-window Collisions */
416894Sfeldman 	u_short	ils_fill2[8];
426894Sfeldman 	char	ils_module[8];		/* Module ID */
436894Sfeldman 	char	ils_firmware[8];	/* Firmware ID */
446894Sfeldman };
456894Sfeldman 
466894Sfeldman /*
476894Sfeldman  * Structure of Collision Delay Time Record
486894Sfeldman  */
496894Sfeldman struct	il_collis {
506894Sfeldman 	u_short	ilc_fill1;
516894Sfeldman 	u_short	ilc_length;		/* Length (should be 0-32) */
526894Sfeldman 	u_short	ilc_delay[16];		/* Delay Times */
536894Sfeldman };
54