actube/src/cw/cw_readelem_statistics_timer.c
7u83@mail.ru ad07cbcf1c A lot of Cisco stuff added
FossilOrigin-Name: ea4edc78cae6fe99d7b4b29d95a8c30a4672d1d1448c0597f5e65e2a74138b9b
2018-04-08 14:48:13 +00:00

19 lines
346 B
C

#include "capwap.h"
#include "dbg.h"
int cw_readelem_statistics_timer(uint16_t *timer, int type, uint8_t * msgelem, int len)
{
if (type != CAPWAP_ELEM_STATISTICS_TIMER)
return 0;
if (len!=2){
cw_dbg(DBG_RFC,"Statistics timer msgelem has wrong size, type=%d,len=%d",type,len);
return 0;
}
*timer=*((uint16_t*)msgelem);
return 1;
}