📄 p80211mgmt.h
字号:
typedef struct wlan_ie_cf_parms{ UINT8 eid __WLAN_ATTRIB_PACK__; UINT8 len __WLAN_ATTRIB_PACK__; UINT8 cfp_cnt __WLAN_ATTRIB_PACK__; UINT8 cfp_period __WLAN_ATTRIB_PACK__; UINT16 cfp_maxdur __WLAN_ATTRIB_PACK__; UINT16 cfp_durremaining __WLAN_ATTRIB_PACK__;} __WLAN_ATTRIB_PACK__ wlan_ie_cf_parms_t;/*-- TIM ------------------------------------------*/typedef struct wlan_ie_tim{ UINT8 eid __WLAN_ATTRIB_PACK__; UINT8 len __WLAN_ATTRIB_PACK__; UINT8 dtim_cnt __WLAN_ATTRIB_PACK__; UINT8 dtim_period __WLAN_ATTRIB_PACK__; UINT8 bitmap_ctl __WLAN_ATTRIB_PACK__; UINT8 virt_bm[1] __WLAN_ATTRIB_PACK__;} __WLAN_ATTRIB_PACK__ wlan_ie_tim_t;/*-- IBSS Parameter Set ---------------------------*/typedef struct wlan_ie_ibss_parms{ UINT8 eid __WLAN_ATTRIB_PACK__; UINT8 len __WLAN_ATTRIB_PACK__; UINT16 atim_win __WLAN_ATTRIB_PACK__;} __WLAN_ATTRIB_PACK__ wlan_ie_ibss_parms_t;/*-- Challenge Text ------------------------------*/typedef struct wlan_ie_challenge{ UINT8 eid __WLAN_ATTRIB_PACK__; UINT8 len __WLAN_ATTRIB_PACK__; UINT8 challenge[1] __WLAN_ATTRIB_PACK__;} __WLAN_ATTRIB_PACK__ wlan_ie_challenge_t;/*-------------------------------------------------*//* Frame Types *//* prototype structure, all mgmt frame types will start with these members */typedef struct wlan_fr_mgmt{ UINT16 type; UINT16 len; /* DOES NOT include CRC !!!!*/ UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ /*-- info elements ----------*/} wlan_fr_mgmt_t;/*-- Beacon ---------------------------------------*/typedef struct wlan_fr_beacon{ UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT64 *ts; UINT16 *bcn_int; UINT16 *cap_info; /*-- info elements ----------*/ wlan_ie_ssid_t *ssid; wlan_ie_supp_rates_t *supp_rates; wlan_ie_fh_parms_t *fh_parms; wlan_ie_ds_parms_t *ds_parms; wlan_ie_cf_parms_t *cf_parms; wlan_ie_ibss_parms_t *ibss_parms; wlan_ie_tim_t *tim;} wlan_fr_beacon_t;/*-- IBSS ATIM ------------------------------------*/typedef struct wlan_fr_ibssatim{ UINT16 type; UINT16 len; UINT8* buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ /*-- info elements ----------*/ /* this frame type has a null body */} wlan_fr_ibssatim_t;/*-- Disassociation -------------------------------*/typedef struct wlan_fr_disassoc{ UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *reason; /*-- info elements ----------*/} wlan_fr_disassoc_t;/*-- Association Request --------------------------*/typedef struct wlan_fr_assocreq{ UINT16 type; UINT16 len; UINT8* buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *cap_info; UINT16 *listen_int; /*-- info elements ----------*/ wlan_ie_ssid_t *ssid; wlan_ie_supp_rates_t *supp_rates;} wlan_fr_assocreq_t;/*-- Association Response -------------------------*/typedef struct wlan_fr_assocresp{ UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *cap_info; UINT16 *status; UINT16 *aid; /*-- info elements ----------*/ wlan_ie_supp_rates_t *supp_rates;} wlan_fr_assocresp_t;/*-- Reassociation Request ------------------------*/typedef struct wlan_fr_reassocreq{ UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *cap_info; UINT16 *listen_int; UINT8 *curr_ap; /*-- info elements ----------*/ wlan_ie_ssid_t *ssid; wlan_ie_supp_rates_t *supp_rates;} wlan_fr_reassocreq_t;/*-- Reassociation Response -----------------------*/typedef struct wlan_fr_reassocresp{ UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *cap_info; UINT16 *status; UINT16 *aid; /*-- info elements ----------*/ wlan_ie_supp_rates_t *supp_rates;} wlan_fr_reassocresp_t;/*-- Probe Request --------------------------------*/typedef struct wlan_fr_probereq{ UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ /*-- info elements ----------*/ wlan_ie_ssid_t *ssid; wlan_ie_supp_rates_t *supp_rates;} wlan_fr_probereq_t;/*-- Probe Response -------------------------------*/typedef struct wlan_fr_proberesp{ UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT64 *ts; UINT16 *bcn_int; UINT16 *cap_info; /*-- info elements ----------*/ wlan_ie_ssid_t *ssid; wlan_ie_supp_rates_t *supp_rates; wlan_ie_fh_parms_t *fh_parms; wlan_ie_ds_parms_t *ds_parms; wlan_ie_cf_parms_t *cf_parms; wlan_ie_ibss_parms_t *ibss_parms;} wlan_fr_proberesp_t;/*-- Authentication -------------------------------*/typedef struct wlan_fr_authen{ UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *auth_alg; UINT16 *auth_seq; UINT16 *status; /*-- info elements ----------*/ wlan_ie_challenge_t *challenge;} wlan_fr_authen_t;/*-- Deauthenication -----------------------------*/typedef struct wlan_fr_deauthen{ UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *reason; /*-- info elements ----------*/} wlan_fr_deauthen_t;/*================================================================*//* Extern Declarations *//*================================================================*//* Function Declarations */void wlan_mgmt_encode_beacon( wlan_fr_beacon_t *f );void wlan_mgmt_decode_beacon( wlan_fr_beacon_t *f );void wlan_mgmt_encode_disassoc( wlan_fr_disassoc_t *f );void wlan_mgmt_decode_disassoc( wlan_fr_disassoc_t *f );void wlan_mgmt_encode_assocreq( wlan_fr_assocreq_t *f );void wlan_mgmt_decode_assocreq( wlan_fr_assocreq_t *f );void wlan_mgmt_encode_assocresp( wlan_fr_assocresp_t *f );void wlan_mgmt_decode_assocresp( wlan_fr_assocresp_t *f );void wlan_mgmt_encode_reassocreq( wlan_fr_reassocreq_t *f );void wlan_mgmt_decode_reassocreq( wlan_fr_reassocreq_t *f );void wlan_mgmt_encode_reassocresp( wlan_fr_reassocresp_t *f );void wlan_mgmt_decode_reassocresp( wlan_fr_reassocresp_t *f );void wlan_mgmt_encode_probereq( wlan_fr_probereq_t *f );void wlan_mgmt_decode_probereq( wlan_fr_probereq_t *f );void wlan_mgmt_encode_proberesp( wlan_fr_proberesp_t *f );void wlan_mgmt_decode_proberesp( wlan_fr_proberesp_t *f );void wlan_mgmt_encode_authen( wlan_fr_authen_t *f );void wlan_mgmt_decode_authen( wlan_fr_authen_t *f );void wlan_mgmt_encode_deauthen( wlan_fr_deauthen_t *f );void wlan_mgmt_decode_deauthen( wlan_fr_deauthen_t *f );#endif /* _P80211MGMT_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -