1 /* 2 * Copyright (c) 1982, 1986 Regents of the University of California. 3 * All rights reserved. 4 * 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) 08/04/88 18 */ 19 20 /* 21 * Structure of an Ethernet header -- receive format 22 */ 23 struct il_rheader { 24 u_char ilr_status; /* Frame Status */ 25 u_char ilr_fill1; 26 u_short ilr_length; /* Frame Length */ 27 u_char ilr_dhost[6]; /* Destination Host */ 28 u_char ilr_shost[6]; /* Source Host */ 29 u_short ilr_type; /* Type of packet */ 30 }; 31 32 /* 33 * Structure of statistics record 34 */ 35 struct il_stats { 36 u_short ils_fill1; 37 u_short ils_length; /* Length (should be 62) */ 38 u_char ils_addr[6]; /* Ethernet Address */ 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 */ 59 struct 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 }; 64