1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 2c85d70efSVitaly Kuzmichev /* 3c85d70efSVitaly Kuzmichev * INET An implementation of the TCP/IP protocol suite for the LINUX 4c85d70efSVitaly Kuzmichev * operating system. INET is implemented using the BSD Socket 5c85d70efSVitaly Kuzmichev * interface as the means of communication with the user level. 6c85d70efSVitaly Kuzmichev * 7c85d70efSVitaly Kuzmichev * Definitions for the Interfaces handler. 8c85d70efSVitaly Kuzmichev * 9c85d70efSVitaly Kuzmichev * Version: @(#)dev.h 1.0.10 08/12/93 10c85d70efSVitaly Kuzmichev * 11c85d70efSVitaly Kuzmichev * Authors: Ross Biro 12c85d70efSVitaly Kuzmichev * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> 13c85d70efSVitaly Kuzmichev * Corey Minyard <wf-rch!minyard@relay.EU.net> 14c85d70efSVitaly Kuzmichev * Donald J. Becker, <becker@cesdis.gsfc.nasa.gov> 15c85d70efSVitaly Kuzmichev * Alan Cox, <Alan.Cox@linux.org> 16c85d70efSVitaly Kuzmichev * Bjorn Ekwall. <bj0rn@blox.se> 17c85d70efSVitaly Kuzmichev * Pekka Riikonen <priikone@poseidon.pspt.fi> 18c85d70efSVitaly Kuzmichev * 19c85d70efSVitaly Kuzmichev * Moved to /usr/include/linux for NET3 20c85d70efSVitaly Kuzmichev */ 21c85d70efSVitaly Kuzmichev #ifndef _LINUX_NETDEVICE_H 22c85d70efSVitaly Kuzmichev #define _LINUX_NETDEVICE_H 23c85d70efSVitaly Kuzmichev 24c85d70efSVitaly Kuzmichev /* 25c85d70efSVitaly Kuzmichev * Network device statistics. Akin to the 2.0 ether stats but 26c85d70efSVitaly Kuzmichev * with byte counters. 27c85d70efSVitaly Kuzmichev */ 28c85d70efSVitaly Kuzmichev 29c85d70efSVitaly Kuzmichev struct net_device_stats { 30c85d70efSVitaly Kuzmichev unsigned long rx_packets; /* total packets received */ 31c85d70efSVitaly Kuzmichev unsigned long tx_packets; /* total packets transmitted */ 32c85d70efSVitaly Kuzmichev unsigned long rx_bytes; /* total bytes received */ 33c85d70efSVitaly Kuzmichev unsigned long tx_bytes; /* total bytes transmitted */ 34c85d70efSVitaly Kuzmichev unsigned long rx_errors; /* bad packets received */ 35c85d70efSVitaly Kuzmichev unsigned long tx_errors; /* packet transmit problems */ 36c85d70efSVitaly Kuzmichev unsigned long rx_dropped; /* no space in linux buffers */ 37c85d70efSVitaly Kuzmichev unsigned long tx_dropped; /* no space available in linux */ 38c85d70efSVitaly Kuzmichev unsigned long multicast; /* multicast packets received */ 39c85d70efSVitaly Kuzmichev unsigned long collisions; 40c85d70efSVitaly Kuzmichev 41c85d70efSVitaly Kuzmichev /* detailed rx_errors: */ 42c85d70efSVitaly Kuzmichev unsigned long rx_length_errors; 43c85d70efSVitaly Kuzmichev unsigned long rx_over_errors; /* receiver ring buff overflow */ 44c85d70efSVitaly Kuzmichev unsigned long rx_crc_errors; /* recved pkt with crc error */ 45c85d70efSVitaly Kuzmichev unsigned long rx_frame_errors; /* recv'd frame alignment error */ 46c85d70efSVitaly Kuzmichev unsigned long rx_fifo_errors; /* recv'r fifo overrun */ 47c85d70efSVitaly Kuzmichev unsigned long rx_missed_errors; /* receiver missed packet */ 48c85d70efSVitaly Kuzmichev 49c85d70efSVitaly Kuzmichev /* detailed tx_errors */ 50c85d70efSVitaly Kuzmichev unsigned long tx_aborted_errors; 51c85d70efSVitaly Kuzmichev unsigned long tx_carrier_errors; 52c85d70efSVitaly Kuzmichev unsigned long tx_fifo_errors; 53c85d70efSVitaly Kuzmichev unsigned long tx_heartbeat_errors; 54c85d70efSVitaly Kuzmichev unsigned long tx_window_errors; 55c85d70efSVitaly Kuzmichev 56c85d70efSVitaly Kuzmichev /* for cslip etc */ 57c85d70efSVitaly Kuzmichev unsigned long rx_compressed; 58c85d70efSVitaly Kuzmichev unsigned long tx_compressed; 59c85d70efSVitaly Kuzmichev }; 60c85d70efSVitaly Kuzmichev 61c85d70efSVitaly Kuzmichev #endif /* _LINUX_NETDEVICE_H */ 62