actube/src/capwap/wtpinfo_readelem_wtp_frame_tunnel_mode.c
7u83@mail.ru d5b690213e Changed all "old-style" debug calls to new dbg calls.
FossilOrigin-Name: 2e98f08a020add71cecfd7d1902ba88cc5a5a48daf9574e85974674c9a6412cc
2015-02-07 10:51:29 +00:00

23 lines
419 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_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;
}