freewtp/lib/element_wtpdescriptor.h

41 lines
1.2 KiB
C
Raw Normal View History

2013-05-01 14:52:55 +02:00
#ifndef __CAPWAP_ELEMENT_WTPDESCRIPTOR_HEADER__
#define __CAPWAP_ELEMENT_WTPDESCRIPTOR_HEADER__
#define CAPWAP_ELEMENT_WTPDESCRIPTOR_VENDOR 0
#define CAPWAP_ELEMENT_WTPDESCRIPTOR_TYPE 39
#define CAPWAP_ELEMENT_WTPDESCRIPTOR (struct capwap_message_element_id){ .vendor = CAPWAP_ELEMENT_WTPDESCRIPTOR_VENDOR, .type = CAPWAP_ELEMENT_WTPDESCRIPTOR_TYPE }
2013-05-01 14:52:55 +02:00
struct capwap_wtpdescriptor_element {
uint8_t maxradios;
uint8_t radiosinuse;
2013-05-01 14:52:55 +02:00
struct capwap_array* encryptsubelement;
struct capwap_array* descsubelement;
};
#define CAPWAP_WTPDESC_SUBELEMENT_WBID_MASK 0x1f
2013-05-01 14:52:55 +02:00
struct capwap_wtpdescriptor_encrypt_subelement {
uint8_t wbid;
uint16_t capabilities;
2013-05-01 14:52:55 +02:00
};
#define CAPWAP_WTPDESC_SUBELEMENT_TYPE_FIRST 0
2013-05-01 14:52:55 +02:00
#define CAPWAP_WTPDESC_SUBELEMENT_HARDWAREVERSION 0
#define CAPWAP_WTPDESC_SUBELEMENT_SOFTWAREVERSION 1
#define CAPWAP_WTPDESC_SUBELEMENT_BOOTVERSION 2
#define CAPWAP_WTPDESC_SUBELEMENT_OTHERVERSION 3
#define CAPWAP_WTPDESC_SUBELEMENT_TYPE_LAST 3
2013-05-01 14:52:55 +02:00
#define CAPWAP_WTPDESC_SUBELEMENT_MAXDATA 1024
struct capwap_wtpdescriptor_desc_subelement {
uint32_t vendor;
uint16_t type;
uint8_t* data;
2013-05-01 14:52:55 +02:00
};
2016-03-07 18:07:46 +01:00
extern const struct capwap_message_elements_ops capwap_element_wtpdescriptor_ops;
2013-05-01 14:52:55 +02:00
#endif /* __CAPWAP_ELEMENT_WTPDESCRIPTOR_HEADER__ */