Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / ndk / platforms / android-17 / arch-x86 / usr / include / linux / if_tr.h
blob7d6319a6cfe792d7a129a1a9fb8b7f6f48283e57
1 /****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_IF_TR_H
13 #define _LINUX_IF_TR_H
15 #include <asm/byteorder.h>
17 #define TR_ALEN 6
18 #define TR_HLEN (sizeof(struct trh_hdr)+sizeof(struct trllc))
19 #define AC 0x10
20 #define LLC_FRAME 0x40
22 #define EXTENDED_SAP 0xAA
23 #define UI_CMD 0x03
25 struct trh_hdr {
26 __u8 ac;
27 __u8 fc;
28 __u8 daddr[TR_ALEN];
29 __u8 saddr[TR_ALEN];
30 __be16 rcf;
31 __be16 rseg[8];
34 struct trllc {
35 __u8 dsap;
36 __u8 ssap;
37 __u8 llc;
38 __u8 protid[3];
39 __be16 ethertype;
42 struct tr_statistics {
43 unsigned long rx_packets;
44 unsigned long tx_packets;
45 unsigned long rx_bytes;
46 unsigned long tx_bytes;
47 unsigned long rx_errors;
48 unsigned long tx_errors;
49 unsigned long rx_dropped;
50 unsigned long tx_dropped;
51 unsigned long multicast;
52 unsigned long transmit_collision;
54 unsigned long line_errors;
55 unsigned long internal_errors;
56 unsigned long burst_errors;
57 unsigned long A_C_errors;
58 unsigned long abort_delimiters;
59 unsigned long lost_frames;
60 unsigned long recv_congest_count;
61 unsigned long frame_copied_errors;
62 unsigned long frequency_errors;
63 unsigned long token_errors;
64 unsigned long dummy1;
67 #define TR_RII 0x80
68 #define TR_RCF_DIR_BIT 0x80
69 #define TR_RCF_LEN_MASK 0x1f00
70 #define TR_RCF_BROADCAST 0x8000
71 #define TR_RCF_LIMITED_BROADCAST 0xC000
72 #define TR_RCF_FRAME2K 0x20
73 #define TR_RCF_BROADCAST_MASK 0xC000
74 #define TR_MAXRIFLEN 18
76 #endif