Subversion Repositories HelenOS

Rev

Rev 4725 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4725 Rev 4728
Line 81... Line 81...
81
     */
81
     */
82
    NETIF_CARRIER_LOST
82
    NETIF_CARRIER_LOST
83
};
83
};
84
 
84
 
85
/** Device usage statistics.
85
/** Device usage statistics.
86
 *  Based on linux_kernel/include/linux/netdevice.h.
-
 
87
 */
86
 */
88
struct  device_stats{
87
struct  device_stats{
89
    /** Total packets received.
88
    /** Total packets received.
90
     */
89
     */
91
    unsigned long   rx_packets;
90
    unsigned long   receive_packets;
92
    /** Total packets transmitted.
91
    /** Total packets transmitted.
93
     */
92
     */
94
    unsigned long   tx_packets;
93
    unsigned long   send_packets;
95
    /** Total bytes received.
94
    /** Total bytes received.
96
     */
95
     */
97
    unsigned long   rx_bytes;
96
    unsigned long   receive_bytes;
98
    /** Total bytes transmitted.
97
    /** Total bytes transmitted.
99
     */
98
     */
100
    unsigned long   tx_bytes;
99
    unsigned long   send_bytes;
101
    /** Bad packets received counter.
100
    /** Bad packets received counter.
102
     */
101
     */
103
    unsigned long   rx_errors;
102
    unsigned long   receive_errors;
104
    /** Packet transmition problems counter.
103
    /** Packet transmition problems counter.
105
     */
104
     */
106
    unsigned long   tx_errors;
105
    unsigned long   send_errors;
107
    /** No space in buffers counter.
106
    /** No space in buffers counter.
108
     */
107
     */
109
    unsigned long   rx_dropped;
108
    unsigned long   receive_dropped;
110
    /** No space available counter.
109
    /** No space available counter.
111
     */
110
     */
112
    unsigned long   tx_dropped;
111
    unsigned long   send_dropped;
113
    /** Total multicast packets received.
112
    /** Total multicast packets received.
114
     */
113
     */
115
    unsigned long   multicast;
114
    unsigned long   multicast;
116
    /** The number of collisions due to congestion on the medium.
115
    /** The number of collisions due to congestion on the medium.
117
     */
116
     */
118
    unsigned long   collisions;
117
    unsigned long   collisions;
119
 
118
 
120
    /* detailed rx_errors: */
119
    /* detailed receive_errors: */
121
    /** Received packet length error counter.
120
    /** Received packet length error counter.
122
     */
121
     */
123
    unsigned long   rx_length_errors;
122
    unsigned long   receive_length_errors;
124
    /** Receiver buffer overflow counter.
123
    /** Receiver buffer overflow counter.
125
     */
124
     */
126
    unsigned long   rx_over_errors;
125
    unsigned long   receive_over_errors;
127
    /** Received packet with crc error counter.
126
    /** Received packet with crc error counter.
128
     */
127
     */
129
    unsigned long   rx_crc_errors;
128
    unsigned long   receive_crc_errors;
130
    /** Received frame alignment error counter.
129
    /** Received frame alignment error counter.
131
     */
130
     */
132
    unsigned long   rx_frame_errors;
131
    unsigned long   receive_frame_errors;
133
    /** Receiver fifo overrun counter.
132
    /** Receiver fifo overrun counter.
134
     */
133
     */
135
    unsigned long   rx_fifo_errors;
134
    unsigned long   receive_fifo_errors;
136
    /** Receiver missed packet counter.
135
    /** Receiver missed packet counter.
137
     */
136
     */
138
    unsigned long   rx_missed_errors;
137
    unsigned long   receive_missed_errors;
139
 
138
 
140
    /* detailed tx_errors */
139
    /* detailed send_errors */
141
    /** Transmitter aborted counter.
140
    /** Transmitter aborted counter.
142
     */
141
     */
143
    unsigned long   tx_aborted_errors;
142
    unsigned long   send_aborted_errors;
144
    /** Transmitter carrier errors counter.
143
    /** Transmitter carrier errors counter.
145
     */
144
     */
146
    unsigned long   tx_carrier_errors;
145
    unsigned long   send_carrier_errors;
147
    /** Transmitter fifo overrun counter.
146
    /** Transmitter fifo overrun counter.
148
     */
147
     */
149
    unsigned long   tx_fifo_errors;
148
    unsigned long   send_fifo_errors;
150
    /** Transmitter carrier errors counter.
149
    /** Transmitter carrier errors counter.
151
     */
150
     */
152
    unsigned long   tx_heartbeat_errors;
151
    unsigned long   send_heartbeat_errors;
153
    /** Transmitter window errors counter.
152
    /** Transmitter window errors counter.
154
     */
153
     */
155
    unsigned long   tx_window_errors;
154
    unsigned long   send_window_errors;
156
 
155
 
157
    /* for cslip etc */
156
    /* for cslip etc */
158
    /** Total compressed packets received.
157
    /** Total compressed packets received.
159
     */
158
     */
160
    unsigned long   rx_compressed;
159
    unsigned long   receive_compressed;
161
    /** Total compressed packet transmitted.
160
    /** Total compressed packet transmitted.
162
     */
161
     */
163
    unsigned long   tx_compressed;
162
    unsigned long   send_compressed;
164
};
163
};
165
 
164
 
166
#endif
165
#endif
167
 
166
 
168
/** @}
167
/** @}