freewtp/lib/element_wtprebootstat.h

34 lines
1.1 KiB
C
Raw Normal View History

2013-05-01 14:52:55 +02:00
#ifndef __CAPWAP_ELEMENT_WTPREBOOTSTAT_HEADER__
#define __CAPWAP_ELEMENT_WTPREBOOTSTAT_HEADER__
#define CAPWAP_ELEMENT_WTPREBOOTSTAT_VENDOR 0
#define CAPWAP_ELEMENT_WTPREBOOTSTAT_TYPE 48
#define CAPWAP_ELEMENT_WTPREBOOTSTAT (struct capwap_message_element_id){ .vendor = CAPWAP_ELEMENT_WTPREBOOTSTAT_VENDOR, .type = CAPWAP_ELEMENT_WTPREBOOTSTAT_TYPE }
2013-05-01 14:52:55 +02:00
#define CAPWAP_NOTAVAILABLE_REBOOT_COUNT 65535
#define CAPWAP_NOTAVAILABLE_ACINIT_COUNT 65535
#define CAPWAP_LAST_FAILURE_NOTSUPPORTED 0
#define CAPWAP_LAST_FAILURE_ACINITIATED 1
#define CAPWAP_LAST_FAILURE_LINK 2
#define CAPWAP_LAST_FAILURE_SOFTWARE 3
#define CAPWAP_LAST_FAILURE_HARDWARE 4
#define CAPWAP_LAST_FAILURE_OTHER 5
#define CAPWAP_LAST_FAILURE_UNKNOWN 255
struct capwap_wtprebootstat_element {
uint16_t rebootcount;
uint16_t acinitiatedcount;
uint16_t linkfailurecount;
uint16_t swfailurecount;
uint16_t hwfailurecount;
uint16_t otherfailurecount;
uint16_t unknownfailurecount;
uint8_t lastfailuretype;
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_wtprebootstat_ops;
2013-05-01 14:52:55 +02:00
#endif /* __CAPWAP_ELEMENT_WTPREBOOTSTAT_HEADER__ */