xref: /csrg-svn/sys/vax/if/if_il.h (revision 29284)
123298Smckusick /*
2*29284Smckusick  * Copyright (c) 1982, 1986 Regents of the University of California.
323298Smckusick  * All rights reserved.  The Berkeley software License Agreement
423298Smckusick  * specifies the terms and conditions for redistribution.
523298Smckusick  *
6*29284Smckusick  *	@(#)if_il.h	7.1 (Berkeley) 06/05/86
723298Smckusick  */
86894Sfeldman 
96894Sfeldman /*
106894Sfeldman  * Structure of an Ethernet header -- receive format
116894Sfeldman  */
126894Sfeldman struct	il_rheader {
136894Sfeldman 	u_char	ilr_status;		/* Frame Status */
146894Sfeldman 	u_char	ilr_fill1;
156894Sfeldman 	u_short	ilr_length;		/* Frame Length */
1619866Skarels 	u_char	ilr_dhost[6];		/* Destination Host */
1719866Skarels 	u_char	ilr_shost[6];		/* Source Host */
186894Sfeldman 	u_short	ilr_type;		/* Type of packet */
196894Sfeldman };
206894Sfeldman 
216894Sfeldman /*
227262Ssam  * Structure of statistics record
236894Sfeldman  */
247262Ssam struct	il_stats {
256894Sfeldman 	u_short	ils_fill1;
266894Sfeldman 	u_short	ils_length;		/* Length (should be 62) */
2719866Skarels 	u_char	ils_addr[6];		/* Ethernet Address */
286894Sfeldman 	u_short	ils_frames;		/* Number of Frames Received */
296894Sfeldman 	u_short	ils_rfifo;		/* Number of Frames in Receive FIFO */
306894Sfeldman 	u_short	ils_xmit;		/* Number of Frames Transmitted */
316894Sfeldman 	u_short	ils_xcollis;		/* Number of Excess Collisions */
326894Sfeldman 	u_short	ils_frag;		/* Number of Fragments Received */
336894Sfeldman 	u_short	ils_lost;		/* Number of Times Frames Lost */
346894Sfeldman 	u_short	ils_multi;		/* Number of Multicasts Accepted */
356894Sfeldman 	u_short	ils_rmulti;		/* Number of Multicasts Rejected */
366894Sfeldman 	u_short	ils_crc;		/* Number of CRC Errors */
376894Sfeldman 	u_short	ils_align;		/* Number of Alignment Errors */
386894Sfeldman 	u_short	ils_collis;		/* Number of Collisions */
396894Sfeldman 	u_short	ils_owcollis;		/* Number of Out-of-window Collisions */
406894Sfeldman 	u_short	ils_fill2[8];
416894Sfeldman 	char	ils_module[8];		/* Module ID */
426894Sfeldman 	char	ils_firmware[8];	/* Firmware ID */
436894Sfeldman };
446894Sfeldman 
456894Sfeldman /*
466894Sfeldman  * Structure of Collision Delay Time Record
476894Sfeldman  */
486894Sfeldman struct	il_collis {
496894Sfeldman 	u_short	ilc_fill1;
506894Sfeldman 	u_short	ilc_length;		/* Length (should be 0-32) */
516894Sfeldman 	u_short	ilc_delay[16];		/* Delay Times */
526894Sfeldman };
53