Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
629 giacomo 1
#ifndef __IF_ETHER__
2
#define __IF_ETHER__
3
 
4
#include <linux/compatib.h>
5
 
6
/*
7
 *      IEEE 802.3 Ethernet magic constants.  The frame sizes omit the preamble
8
 *      and FCS/CRC (frame check sequence).
9
 */
10
 
11
#define ETH_ALEN        6               /* Octets in one ethernet addr   */
12
#define ETH_HLEN        14              /* Total octets in header.       */
13
#define ETH_ZLEN        60              /* Min. octets in frame sans FCS */
14
#define ETH_DATA_LEN    1500            /* Max. octets in payload        */
15
#define ETH_FRAME_LEN   1514            /* Max. octets in frame sans FCS */
16
 
17
/*
18
 *      Ethernet statistics collection data.
19
 */
20
 
21
#define enet_statistics net_device_stats
22
 
23
//struct enet_statistics
24
//{
25
//      unsigned long   rx_packets;             /* total packets received       */
26
//      unsigned long   tx_packets;             /* total packets transmitted    */
27
//      unsigned long   rx_bytes;               /* total bytes received         */
28
//      unsigned long   tx_bytes;               /* total bytes transmitted      */
29
//      unsigned long   rx_errors;              /* bad packets received         */
30
//      unsigned long   tx_errors;              /* packet transmit problems     */
31
//      unsigned long   rx_dropped;             /* no space in linux buffers    */
32
//      unsigned long   tx_dropped;             /* no space available in linux  */
33
//      unsigned long   multicast;              /* multicast packets received   */
34
//      unsigned long   collisions;
35
//
36
//      /* detailed rx_errors: */
37
//      unsigned long   rx_length_errors;
38
//      unsigned long   rx_over_errors;         /* receiver ring buff overflow  */
39
//      unsigned long   rx_crc_errors;          /* recved pkt with crc error    */
40
//      unsigned long   rx_frame_errors;        /* recv'd frame alignment error */
41
//      unsigned long   rx_fifo_errors;         /* recv'r fifo overrun          */
42
//      unsigned long   rx_missed_errors;       /* receiver missed packet       */
43
//
44
//      /* detailed tx_errors */
45
//      unsigned long   tx_aborted_errors;
46
//      unsigned long   tx_carrier_errors;
47
//      unsigned long   tx_fifo_errors;
48
//      unsigned long   tx_heartbeat_errors;
49
//      unsigned long   tx_window_errors;
50
//      
51
//      /* for cslip etc */
52
//      unsigned long   rx_compressed;
53
//      unsigned long   tx_compressed;
54
//};
55
 
56
#endif