Fix distribution by adding include/linux/if_link.h to "make dist".
[sliver-openvswitch.git] / include / linux / if_link.h
1 #ifndef __LINUX_IF_LINK_WRAPPER_H
2 #define __LINUX_IF_LINK_WRAPPER_H 1
3
4 #include_next <linux/if_link.h>
5
6 #include <linux/version.h>
7 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
8 /* The main device statistics structure */
9 struct rtnl_link_stats64 {
10         __u64   rx_packets;             /* total packets received       */
11         __u64   tx_packets;             /* total packets transmitted    */
12         __u64   rx_bytes;               /* total bytes received         */
13         __u64   tx_bytes;               /* total bytes transmitted      */
14         __u64   rx_errors;              /* bad packets received         */
15         __u64   tx_errors;              /* packet transmit problems     */
16         __u64   rx_dropped;             /* no space in linux buffers    */
17         __u64   tx_dropped;             /* no space available in linux  */
18         __u64   multicast;              /* multicast packets received   */
19         __u64   collisions;
20
21         /* detailed rx_errors: */
22         __u64   rx_length_errors;
23         __u64   rx_over_errors;         /* receiver ring buff overflow  */
24         __u64   rx_crc_errors;          /* recved pkt with crc error    */
25         __u64   rx_frame_errors;        /* recv'd frame alignment error */
26         __u64   rx_fifo_errors;         /* recv'r fifo overrun          */
27         __u64   rx_missed_errors;       /* receiver missed packet       */
28
29         /* detailed tx_errors */
30         __u64   tx_aborted_errors;
31         __u64   tx_carrier_errors;
32         __u64   tx_fifo_errors;
33         __u64   tx_heartbeat_errors;
34         __u64   tx_window_errors;
35
36         /* for cslip etc */
37         __u64   rx_compressed;
38         __u64   tx_compressed;
39 };
40 #endif  /* linux kernel < 2.6.35 */
41
42 #endif