Inital commit.

FossilOrigin-Name: 8d07ea07dbe0e0439000f161623cb84999c5b8b83ecdd15815b51c8e975e5cf1
This commit is contained in:
7u83@mail.ru 2014-08-25 22:56:52 +00:00
parent 09c1e6453b
commit 55ab81f5d6
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#include <arpa/inet.h>
#include "capwap.h"
#include "cw_log.h"
#include <stdio.h> //tube
int cw_readelem_vendor_specific_payload(void * data,int msgtype,int elemtype,uint8_t *msgelem, int len)
{
if (elemtype != CWMSGELEM_VENDOR_SPECIFIC_PAYLOAD)
return 0;
if (len < 6){
cw_dbg(DBG_ERR,"Vendor specific payload msgelem too short, len < 6.");
return 1;
}
// uint32_t vendor_id = ntohl( *((uint32_t*)msgelem) );
return 1;
}