More capwap rfc checkings.

FossilOrigin-Name: 210f98445c74251012a16bf00b70760502c7030b152cb165be1153341a6054d9
This commit is contained in:
7u83@mail.ru 2015-01-08 18:34:22 +00:00
parent 742a9dd7ad
commit a0fd943659
1 changed files with 8 additions and 6 deletions

View File

@ -81,7 +81,15 @@ static int process_elem(void *eparm,int type,uint8_t* msgelem,int len)
return 1;
}
/* non-mandatory messages */
uint16_t ml;
if (cw_readelem_maximum_message_length(&ml,type,msgelem,len)){
return 1;
}
if (cw_readelem_wtp_reboot_statistics(&e->wtpinfo->reboot_statistics,type,msgelem,len))
goto foundX;
return 0;
@ -107,12 +115,6 @@ void process_join_request(struct wtpinfo * wtpinfo, uint8_t * msg, int len)
};
// cw_foreach_msgelem(msg,len,process_elem,(void*)wtpinfo);
struct eparm eparm;
eparm.wtpinfo = wtpinfo;
eparm.mand = mand;