Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4727 → Rev 4728

/branches/network/uspace/srv/net/include/device.h
83,33 → 83,32
};
 
/** Device usage statistics.
* Based on linux_kernel/include/linux/netdevice.h.
*/
struct device_stats{
/** Total packets received.
*/
unsigned long rx_packets;
unsigned long receive_packets;
/** Total packets transmitted.
*/
unsigned long tx_packets;
unsigned long send_packets;
/** Total bytes received.
*/
unsigned long rx_bytes;
unsigned long receive_bytes;
/** Total bytes transmitted.
*/
unsigned long tx_bytes;
unsigned long send_bytes;
/** Bad packets received counter.
*/
unsigned long rx_errors;
unsigned long receive_errors;
/** Packet transmition problems counter.
*/
unsigned long tx_errors;
unsigned long send_errors;
/** No space in buffers counter.
*/
unsigned long rx_dropped;
unsigned long receive_dropped;
/** No space available counter.
*/
unsigned long tx_dropped;
unsigned long send_dropped;
/** Total multicast packets received.
*/
unsigned long multicast;
117,50 → 116,50
*/
unsigned long collisions;
 
/* detailed rx_errors: */
/* detailed receive_errors: */
/** Received packet length error counter.
*/
unsigned long rx_length_errors;
unsigned long receive_length_errors;
/** Receiver buffer overflow counter.
*/
unsigned long rx_over_errors;
unsigned long receive_over_errors;
/** Received packet with crc error counter.
*/
unsigned long rx_crc_errors;
unsigned long receive_crc_errors;
/** Received frame alignment error counter.
*/
unsigned long rx_frame_errors;
unsigned long receive_frame_errors;
/** Receiver fifo overrun counter.
*/
unsigned long rx_fifo_errors;
unsigned long receive_fifo_errors;
/** Receiver missed packet counter.
*/
unsigned long rx_missed_errors;
unsigned long receive_missed_errors;
 
/* detailed tx_errors */
/* detailed send_errors */
/** Transmitter aborted counter.
*/
unsigned long tx_aborted_errors;
unsigned long send_aborted_errors;
/** Transmitter carrier errors counter.
*/
unsigned long tx_carrier_errors;
unsigned long send_carrier_errors;
/** Transmitter fifo overrun counter.
*/
unsigned long tx_fifo_errors;
unsigned long send_fifo_errors;
/** Transmitter carrier errors counter.
*/
unsigned long tx_heartbeat_errors;
unsigned long send_heartbeat_errors;
/** Transmitter window errors counter.
*/
unsigned long tx_window_errors;
unsigned long send_window_errors;
 
/* for cslip etc */
/** Total compressed packets received.
*/
unsigned long rx_compressed;
unsigned long receive_compressed;
/** Total compressed packet transmitted.
*/
unsigned long tx_compressed;
unsigned long send_compressed;
};
 
#endif