Code clean-up, more CAPWAP VM stuff.

FossilOrigin-Name: 46219e8d896fe0873fcbe0be66d57238e202c8d9628a6eca204126107b0f3356
This commit is contained in:
7u83@mail.ru
2015-03-31 12:03:21 +00:00
parent 5ef2f6739c
commit e576d87990
7 changed files with 30 additions and 6 deletions

View File

@ -1,14 +1,27 @@
#include "capwap.h"
#include "capwap_items.h"
#include "cw_log.h"
#include "itemstore.h"
int cw_in_wtp_name(struct conn *conn,struct cw_action * a,uint8_t *data,int len)
{
int i;
printf("WTP Name: ");
for (i=0; i<len; i++) {
printf("%c",data[i]);
}
printf("\n");
if (len > 512){
cw_dbg(DBG_CW_RFC, "WTP Name too long, must not exceed 512, len is %d",len);
}
cw_itemstore_set_strn(conn->itemstore,CW_ITEM_WTP_NAME,(const char*)data,len);
return 1;
}