1 /* 2 * Copyright (c) 1982, 1986 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)if_il.h 7.3 (Berkeley) 06/28/90 8 */ 9 10 /* 11 * Structure of an Ethernet header -- receive format 12 */ 13 struct il_rheader { 14 u_char ilr_status; /* Frame Status */ 15 u_char ilr_fill1; 16 u_short ilr_length; /* Frame Length */ 17 u_char ilr_dhost[6]; /* Destination Host */ 18 u_char ilr_shost[6]; /* Source Host */ 19 u_short ilr_type; /* Type of packet */ 20 }; 21 22 /* 23 * Structure of statistics record 24 */ 25 struct il_stats { 26 u_short ils_fill1; 27 u_short ils_length; /* Length (should be 62) */ 28 u_char ils_addr[6]; /* Ethernet Address */ 29 u_short ils_frames; /* Number of Frames Received */ 30 u_short ils_rfifo; /* Number of Frames in Receive FIFO */ 31 u_short ils_xmit; /* Number of Frames Transmitted */ 32 u_short ils_xcollis; /* Number of Excess Collisions */ 33 u_short ils_frag; /* Number of Fragments Received */ 34 u_short ils_lost; /* Number of Times Frames Lost */ 35 u_short ils_multi; /* Number of Multicasts Accepted */ 36 u_short ils_rmulti; /* Number of Multicasts Rejected */ 37 u_short ils_crc; /* Number of CRC Errors */ 38 u_short ils_align; /* Number of Alignment Errors */ 39 u_short ils_collis; /* Number of Collisions */ 40 u_short ils_owcollis; /* Number of Out-of-window Collisions */ 41 u_short ils_fill2[8]; 42 char ils_module[8]; /* Module ID */ 43 char ils_firmware[8]; /* Firmware ID */ 44 }; 45 46 /* 47 * Structure of Collision Delay Time Record 48 */ 49 struct il_collis { 50 u_short ilc_fill1; 51 u_short ilc_length; /* Length (should be 0-32) */ 52 u_short ilc_delay[16]; /* Delay Times */ 53 }; 54