freewtp/src/common/capwap_element_80211_stationkey.h

24 lines
842 B
C
Raw Normal View History

2013-05-30 22:32:08 +02:00
#ifndef __CAPWAP_ELEMENT_80211_STATION_SESSION_KEY_HEADER__
#define __CAPWAP_ELEMENT_80211_STATION_SESSION_KEY_HEADER__
#define CAPWAP_ELEMENT_80211_STATION_SESSION_KEY_PROFILE 1038
2013-05-30 22:32:08 +02:00
#define CAPWAP_STATION_SESSION_KEY_PAIRWISE_TSC_LENGTH 6
#define CAPWAP_STATION_SESSION_KEY_PAIRWISE_RSC_LENGTH 6
#define CAPWAP_STATION_SESSION_KEY_AKM_ONLY 0x8000
#define CAPWAP_STATION_SESSION_KEY_AC_ENCRYPT 0x4000
struct capwap_80211_stationkey_element {
uint8_t address[MACADDRESS_EUI48_LENGTH];
2013-05-30 22:32:08 +02:00
uint16_t flags;
uint8_t pairwisetsc[CAPWAP_STATION_SESSION_KEY_PAIRWISE_TSC_LENGTH];
uint8_t pairwisersc[CAPWAP_STATION_SESSION_KEY_PAIRWISE_RSC_LENGTH];
uint16_t keylength;
2013-05-31 22:24:58 +02:00
uint8_t* key;
2013-05-30 22:32:08 +02:00
};
extern struct capwap_message_elements_ops capwap_element_80211_stationkey_ops;
#endif /* __CAPWAP_ELEMENT_80211_STATION_SESSION_KEY_HEADER__ */