Improve memory administration for tx/rx packet manager
This commit is contained in:
@ -4,18 +4,9 @@
|
||||
#define CAPWAP_ELEMENT_STATISTICSTIMER 36
|
||||
|
||||
struct capwap_statisticstimer_element {
|
||||
unsigned short timer;
|
||||
uint16_t timer;
|
||||
};
|
||||
|
||||
struct capwap_message_element* capwap_statisticstimer_element_create(void* data, unsigned long length);
|
||||
int capwap_statisticstimer_element_validate(struct capwap_message_element* element);
|
||||
void* capwap_statisticstimer_element_parsing(struct capwap_message_element* element);
|
||||
void capwap_statisticstimer_element_free(void* data);
|
||||
extern struct capwap_message_elements_ops capwap_element_statisticstimer_ops;
|
||||
|
||||
/* Helper */
|
||||
#define CAPWAP_CREATE_STATISTICSTIMER_ELEMENT(x) ({ \
|
||||
struct capwap_message_elements_func* f = capwap_get_message_element(CAPWAP_ELEMENT_STATISTICSTIMER); \
|
||||
f->create(x, sizeof(struct capwap_statisticstimer_element)); \
|
||||
})
|
||||
|
||||
#endif /* __CAPWAP_ELEMENT_STATISTICSTIMER_HEADER__ */
|
||||
|
Reference in New Issue
Block a user