freewtp/lib/element_vendorpayload.h

27 lines
905 B
C
Raw Normal View History

2013-05-01 14:52:55 +02:00
#ifndef __CAPWAP_ELEMENT_VENDORPAYLOAD_HEADER__
#define __CAPWAP_ELEMENT_VENDORPAYLOAD_HEADER__
#define CAPWAP_ELEMENT_VENDORPAYLOAD_VENDOR 0
#define CAPWAP_ELEMENT_VENDORPAYLOAD_TYPE 37
#define CAPWAP_ELEMENT_VENDORPAYLOAD (struct capwap_message_element_id){ .vendor = CAPWAP_ELEMENT_VENDORPAYLOAD_VENDOR, .type = CAPWAP_ELEMENT_VENDORPAYLOAD_TYPE }
2013-05-01 14:52:55 +02:00
#define CAPWAP_VENDORPAYLOAD_MAXLENGTH 2048
struct capwap_vendorpayload_element {
uint32_t vendorid;
uint16_t elementid;
uint16_t datalength;
uint8_t data[];
2013-05-01 14:52:55 +02:00
};
void *
capwap_unknown_vendorpayload_element_parsing(capwap_message_elements_handle handle,
struct capwap_read_message_elements_ops *func,
unsigned short length,
const struct capwap_message_element_id vendor_id);
2016-03-07 18:07:46 +01:00
extern const struct capwap_message_elements_ops capwap_element_vendorpayload_ops;
2013-05-01 14:52:55 +02:00
#endif /* __CAPWAP_ELEMENT_VENDORPAYLOAD_HEADER__ */