Diffstat (limited to 'libopie2/opienet/802_11_user.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opienet/802_11_user.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libopie2/opienet/802_11_user.h b/libopie2/opienet/802_11_user.h index f596bd8..cd98503 100644 --- a/libopie2/opienet/802_11_user.h +++ b/libopie2/opienet/802_11_user.h | |||
@@ -348,48 +348,62 @@ struct ibss_t { | |||
348 | #define E_CHALLENGE 16 | 348 | #define E_CHALLENGE 16 |
349 | #define E_CISCO 133 | 349 | #define E_CISCO 133 |
350 | 350 | ||
351 | 351 | ||
352 | struct ieee_802_11_mgmt_body { | 352 | struct ieee_802_11_mgmt_body { |
353 | u_int8_t timestamp[8]; | 353 | u_int8_t timestamp[8]; |
354 | u_int16_t beacon_interval; | 354 | u_int16_t beacon_interval; |
355 | // u_int16_t listen_interval; | 355 | // u_int16_t listen_interval; |
356 | // u_int16_t status_code; | 356 | // u_int16_t status_code; |
357 | // u_int16_t aid; | 357 | // u_int16_t aid; |
358 | // u_char ap[6]; | 358 | // u_char ap[6]; |
359 | // u_int16_treason_code; | 359 | // u_int16_treason_code; |
360 | // u_int16_tauth_alg; | 360 | // u_int16_tauth_alg; |
361 | // u_int16_tauth_trans_seq_num; | 361 | // u_int16_tauth_trans_seq_num; |
362 | // struct challenge_t challenge; | 362 | // struct challenge_t challenge; |
363 | u_int16_t capability_info; | 363 | u_int16_t capability_info; |
364 | // struct ssid_tssid; | 364 | // struct ssid_tssid; |
365 | // struct rates_t rates; | 365 | // struct rates_t rates; |
366 | // struct ds_tds; | 366 | // struct ds_tds; |
367 | // struct cf_tcf; | 367 | // struct cf_tcf; |
368 | // struct fh_tfh; | 368 | // struct fh_tfh; |
369 | // struct tim_ttim; | 369 | // struct tim_ttim; |
370 | }; | 370 | }; |
371 | 371 | ||
372 | /* a 802.11 value */ | ||
373 | struct val_80211 { | ||
374 | unsigned int did; | ||
375 | unsigned short status, len; | ||
376 | unsigned int data; | ||
377 | }; | ||
378 | |||
379 | /* header attached during prism monitor mode */ | ||
380 | struct prism_hdr { | ||
381 | unsigned int msgcode, msglen; | ||
382 | char devname[16]; | ||
383 | struct val_80211 hosttime, mactime, channel, rssi, sq, signal, | ||
384 | noise, rate, istx, frmlen; | ||
385 | }; | ||
372 | 386 | ||
373 | struct ieee_802_11_data_body { | 387 | struct ieee_802_11_data_body { |
374 | //FIXME | 388 | //FIXME |
375 | }; | 389 | }; |
376 | 390 | ||
377 | struct ieee_802_11_control_body { | 391 | struct ieee_802_11_control_body { |
378 | //FIXME | 392 | //FIXME |
379 | }; | 393 | }; |
380 | 394 | ||
381 | struct ctrl_rts_t { | 395 | struct ctrl_rts_t { |
382 | u_int16_tfc; | 396 | u_int16_tfc; |
383 | u_int16_tduration; | 397 | u_int16_tduration; |
384 | u_int8_tra[6]; | 398 | u_int8_tra[6]; |
385 | u_int8_tta[6]; | 399 | u_int8_tta[6]; |
386 | u_int8_tfcs[4]; | 400 | u_int8_tfcs[4]; |
387 | }; | 401 | }; |
388 | 402 | ||
389 | #define CTRL_RTS_LEN(2+2+6+6+4) | 403 | #define CTRL_RTS_LEN(2+2+6+6+4) |
390 | 404 | ||
391 | struct ctrl_cts_t { | 405 | struct ctrl_cts_t { |
392 | u_int16_tfc; | 406 | u_int16_tfc; |
393 | u_int16_tduration; | 407 | u_int16_tduration; |
394 | u_int8_tra[6]; | 408 | u_int8_tra[6]; |
395 | u_int8_tfcs[4]; | 409 | u_int8_tfcs[4]; |