36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
#ifndef __CAPWAP_ELEMENT_WTPBOARDDATA_HEADER__
|
|
#define __CAPWAP_ELEMENT_WTPBOARDDATA_HEADER__
|
|
|
|
#define CAPWAP_ELEMENT_WTPBOARDDATA_VENDOR 0
|
|
#define CAPWAP_ELEMENT_WTPBOARDDATA_TYPE 38
|
|
#define CAPWAP_ELEMENT_WTPBOARDDATA (struct capwap_message_element_id){ .vendor = CAPWAP_ELEMENT_WTPBOARDDATA_VENDOR, .type = CAPWAP_ELEMENT_WTPBOARDDATA_TYPE }
|
|
|
|
|
|
struct capwap_wtpboarddata_element {
|
|
uint32_t vendor;
|
|
struct capwap_array* boardsubelement;
|
|
};
|
|
|
|
#define CAPWAP_BOARD_SUBELEMENT_TYPE_FIRST 0
|
|
#define CAPWAP_BOARD_SUBELEMENT_MODELNUMBER 0
|
|
#define CAPWAP_BOARD_SUBELEMENT_SERIALNUMBER 1
|
|
#define CAPWAP_BOARD_SUBELEMENT_ID 2
|
|
#define CAPWAP_BOARD_SUBELEMENT_REVISION 3
|
|
#define CAPWAP_BOARD_SUBELEMENT_MACADDRESS 4
|
|
#define CAPWAP_BOARD_SUBELEMENT_TYPE_LAST 4
|
|
|
|
#define CAPWAP_BOARD_SUBELEMENT_MAXDATA 1024
|
|
|
|
struct capwap_wtpboarddata_board_subelement {
|
|
uint16_t type;
|
|
uint16_t length;
|
|
uint8_t* data;
|
|
};
|
|
|
|
extern const struct capwap_message_elements_ops capwap_element_wtpboarddata_ops;
|
|
|
|
/* Helper function */
|
|
struct capwap_wtpboarddata_board_subelement* capwap_wtpboarddata_get_subelement(struct capwap_wtpboarddata_element* wtpboarddata, int subelement);
|
|
|
|
#endif /* __CAPWAP_ELEMENT_WTPBOARDDATA_HEADER__ */
|