Go to the documentation of this file.
39 #define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1)
42 #define MAX_LOOKAHEAD_SIZE ETH_FRAME_LEN
44 #define U_MULTI_ADDR_LEN 8 // multicast address length
49 #define TYPE_PKT_IP 0x0800 //
50 #define TYPE_PKT_ARP 0x0806 //
51 #define TYPE_PKT_RARP 0x8035 //
52 #define TYPE_PKT_IPX 0x8137 //
53 #define TYPE_PKT_802_1x 0x888e
54 #define TYPE_PKT_PreAuth 0x88C7
56 #define TYPE_PKT_PING_M_REQ 0x8011 // master reguest
57 #define TYPE_PKT_PING_S_GNT 0x8022 // slave grant
58 #define TYPE_PKT_PING_M 0x8077 // pingpong master packet
59 #define TYPE_PKT_PING_S 0x8088 // pingpong slave packet
60 #define TYPE_PKT_WOL_M_REQ 0x8033 // WOL waker request
61 #define TYPE_PKT_WOL_S_GNT 0x8044 // WOL sleeper grant
62 #define TYPE_MGMT_PROBE_RSP 0x5000
63 #define TYPE_PKT_VNT_DIAG 0x8011 // Diag Pkt
64 #define TYPE_PKT_VNT_PER 0x8888 // Diag PER Pkt
70 #define FC_TODS 0x0001
71 #define FC_FROMDS 0x0002
72 #define FC_MOREFRAG 0x0004
73 #define FC_RETRY 0x0008
74 #define FC_POWERMGT 0x0010
75 #define FC_MOREDATA 0x0020
77 #define TYPE_802_11_ATIM 0x9000
79 #define TYPE_802_11_DATA 0x0800
80 #define TYPE_802_11_CTL 0x0400
81 #define TYPE_802_11_MGMT 0x0000
82 #define TYPE_802_11_MASK 0x0C00
83 #define TYPE_SUBTYPE_MASK 0xFC00
84 #define TYPE_802_11_NODATA 0x4000
85 #define TYPE_DATE_NULL 0x4800
87 #define TYPE_CTL_PSPOLL 0xa400
88 #define TYPE_CTL_RTS 0xb400
89 #define TYPE_CTL_CTS 0xc400
90 #define TYPE_CTL_ACK 0xd400
93 #else //if LITTLE_ENDIAN
99 #define TYPE_PKT_IP 0x0008 //
100 #define TYPE_PKT_ARP 0x0608 //
101 #define TYPE_PKT_RARP 0x3580 //
102 #define TYPE_PKT_IPX 0x3781 //
104 #define TYPE_PKT_802_1x 0x8e88
105 #define TYPE_PKT_PreAuth 0xC788
107 #define TYPE_PKT_PING_M_REQ 0x1180 // master reguest
108 #define TYPE_PKT_PING_S_GNT 0x2280 // slave grant
109 #define TYPE_PKT_PING_M 0x7780 // pingpong master packet
110 #define TYPE_PKT_PING_S 0x8880 // pingpong slave packet
111 #define TYPE_PKT_WOL_M_REQ 0x3380 // WOL waker request
112 #define TYPE_PKT_WOL_S_GNT 0x4480 // WOL sleeper grant
113 #define TYPE_MGMT_PROBE_RSP 0x0050
114 #define TYPE_PKT_VNT_DIAG 0x1180 // Diag Pkt
115 #define TYPE_PKT_VNT_PER 0x8888 // Diag PER Pkt
121 #define FC_TODS 0x0100
122 #define FC_FROMDS 0x0200
123 #define FC_MOREFRAG 0x0400
124 #define FC_RETRY 0x0800
125 #define FC_POWERMGT 0x1000
126 #define FC_MOREDATA 0x2000
127 #define FC_WEP 0x4000
128 #define TYPE_802_11_ATIM 0x0090
130 #define TYPE_802_11_DATA 0x0008
131 #define TYPE_802_11_CTL 0x0004
132 #define TYPE_802_11_MGMT 0x0000
133 #define TYPE_802_11_MASK 0x000C
134 #define TYPE_SUBTYPE_MASK 0x00FC
135 #define TYPE_802_11_NODATA 0x0040
136 #define TYPE_DATE_NULL 0x0048
138 #define TYPE_CTL_PSPOLL 0x00a4
139 #define TYPE_CTL_RTS 0x00b4
140 #define TYPE_CTL_CTS 0x00c4
141 #define TYPE_CTL_ACK 0x00d4
145 #endif //#ifdef __BIG_ENDIAN
147 #define WEP_IV_MASK 0x00FFFFFF
197 #endif // __TETHER_H__