actube/src/capwap/wtpinfo_readelem_wtp_frame_tunnel_mode.c
7u83@mail.ru e74e8772f8 Playing round with a new state machine concept.
FossilOrigin-Name: b15d1beded51369384764d634c232711fc37027a08e25ad22b5ed0e841b9e574
2015-03-30 05:56:42 +00:00

23 lines
417 B
C

#include "wtpinfo.h"
#include "capwap.h"
#include "cw_log.h"
int wtpinfo_readelem_wtp_frame_tunnel_mode(struct wtpinfo * wtpinfo, int type, uint8_t * msgelem, int len)
{
if (type != CW_ELEM_WTP_FRAME_TUNNEL_MODE)
return 0;
if (len!=1){
cw_dbg(DBG_CW_MSG_ERR,"Discarding WTP_DISCOVERY_TYPE msgelem, wrong size, type=%d,len=%d",type,len);
return 1;
}
wtpinfo->frame_tunnel_mode=*msgelem;
return 1;
}