Diffstat (limited to 'libopie2/opienet/802_11_user.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opienet/802_11_user.h | 54 |
1 files changed, 31 insertions, 23 deletions
diff --git a/libopie2/opienet/802_11_user.h b/libopie2/opienet/802_11_user.h index 0b3f198..ffdcb93 100644 --- a/libopie2/opienet/802_11_user.h +++ b/libopie2/opienet/802_11_user.h | |||
@@ -252,17 +252,17 @@ struct ieee_802_11_data_header { | |||
252 | u_int16_tSeqCtl; | 252 | u_int16_tSeqCtl; |
253 | u_int8_tmac4[6]; | 253 | u_int8_tmac4[6]; |
254 | // u_int16_tgapLen; | 254 | // u_int16_tgapLen; |
255 | // u_int8_tgap[8]; | 255 | // u_int8_tgap[8]; |
256 | }; | 256 | }; |
257 | 257 | ||
258 | #define CAPABILITY_ESS(cap)((cap) & 0x0001) | 258 | #define CAPABILITY_ESS(cap) ((cap) & 0x0001) |
259 | #define CAPABILITY_IBSS(cap)((cap) & 0x0002) | 259 | #define CAPABILITY_IBSS(cap) ((cap) & 0x0002) |
260 | #define CAPABILITY_CFP(cap)((cap) & 0x0004) | 260 | #define CAPABILITY_CFP(cap) ((cap) & 0x0004) |
261 | #define CAPABILITY_CFP_REQ(cap)((cap) & 0x0008) | 261 | #define CAPABILITY_CFP_REQ(cap) ((cap) & 0x0008) |
262 | #define CAPABILITY_PRIVACY(cap)((cap) & 0x0010) | 262 | #define CAPABILITY_PRIVACY(cap) ((cap) & 0x0010) |
263 | 263 | ||
264 | struct ssid_t { | 264 | struct ssid_t { |
265 | u_int8_telement_id; | 265 | u_int8_telement_id; |
266 | u_int8_tlength; | 266 | u_int8_tlength; |
267 | u_char ssid[33]; /* 32 + 1 for null */ | 267 | u_char ssid[33]; /* 32 + 1 for null */ |
268 | }; | 268 | }; |
@@ -315,41 +315,49 @@ struct tim_t { | |||
315 | u_int8_tcount; | 315 | u_int8_tcount; |
316 | u_int8_tperiod; | 316 | u_int8_tperiod; |
317 | u_int8_tbitmap_control; | 317 | u_int8_tbitmap_control; |
318 | u_int8_tbitmap[251]; | 318 | u_int8_tbitmap[251]; |
319 | }; | 319 | }; |
320 | 320 | ||
321 | #define E_SSID 0 | 321 | |
322 | #define E_RATES 1 | 322 | struct ibss_t { |
323 | #define E_FH 2 | 323 | u_int8_telement_id; |
324 | #define E_DS 3 | 324 | u_int8_tlength; |
325 | #define E_CF 4 | 325 | u_int16_tatim_window; |
326 | #define E_TIM 5 | 326 | }; |
327 | #define E_IBSS 6 | 327 | |
328 | #define E_CHALLENGE 16 | 328 | |
329 | #define E_CISCO 133 | 329 | #define E_SSID 0 |
330 | #define E_RATES 1 | ||
331 | #define E_FH 2 | ||
332 | #define E_DS 3 | ||
333 | #define E_CF 4 | ||
334 | #define E_TIM 5 | ||
335 | #define E_IBSS 6 | ||
336 | #define E_CHALLENGE 16 | ||
337 | #define E_CISCO 133 | ||
330 | 338 | ||
331 | 339 | ||
332 | struct ieee_802_11_mgmt_body { | 340 | struct ieee_802_11_mgmt_body { |
333 | u_int8_t timestamp[8]; | 341 | u_int8_t timestamp[8]; |
334 | u_int16_t beacon_interval; | 342 | u_int16_t beacon_interval; |
335 | // u_int16_t listen_interval; | 343 | // u_int16_t listen_interval; |
336 | // u_int16_t status_code; | 344 | // u_int16_t status_code; |
337 | // u_int16_t aid; | 345 | // u_int16_t aid; |
338 | // u_char ap[6]; | 346 | // u_char ap[6]; |
339 | // u_int16_treason_code; | 347 | // u_int16_treason_code; |
340 | // u_int16_tauth_alg; | 348 | // u_int16_tauth_alg; |
341 | // u_int16_tauth_trans_seq_num; | 349 | // u_int16_tauth_trans_seq_num; |
342 | // struct challenge_t challenge; | 350 | // struct challenge_t challenge; |
343 | u_int16_tcapability_info; | 351 | u_int16_t capability_info; |
344 | struct ssid_tssid; | 352 | // struct ssid_tssid; |
345 | struct rates_t rates; | 353 | // struct rates_t rates; |
346 | struct ds_tds; | 354 | // struct ds_tds; |
347 | struct cf_tcf; | 355 | // struct cf_tcf; |
348 | struct fh_tfh; | 356 | // struct fh_tfh; |
349 | struct tim_ttim; | 357 | // struct tim_ttim; |
350 | }; | 358 | }; |
351 | 359 | ||
352 | 360 | ||
353 | struct ieee_802_11_data_body { | 361 | struct ieee_802_11_data_body { |
354 | //FIXME | 362 | //FIXME |
355 | }; | 363 | }; |