Inital commit.
FossilOrigin-Name: 8d07ea07dbe0e0439000f161623cb84999c5b8b83ecdd15815b51c8e975e5cf1
This commit is contained in:
parent
09c1e6453b
commit
55ab81f5d6
26
src/capwap/cw_readelem_vendor_specific_payload.c
Normal file
26
src/capwap/cw_readelem_vendor_specific_payload.c
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user