actube/src/capwap/wtpinfo_readelem_wtp_frame_tunnel_mode.c
7u83@mail.ru 2bae9358d7 Initial commit
FossilOrigin-Name: c53d95729c009f8f80a7d63847cef7668ff73f8af0523ab65f7734696f85399c
2014-07-11 20:12:11 +00:00

23 lines
411 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 != CWMSGELEM_WTP_FRAME_TUNNEL_MODE)
return 0;
if (len!=1){
cw_log_debug0("Discarding WTP_DISCOVERY_TYPE msgelem, wrong size, type=%d,len=%d",type,len);
return 1;
}
wtpinfo->frame_tunnel_mode=*msgelem;
return 1;
}