Removed.
FossilOrigin-Name: 30b5daa86a2e9921d299aef52498b3f5a08c70bae31c3df7c957a60d59f7102f
This commit is contained in:
		@ -1,32 +0,0 @@
 | 
				
			|||||||
 | 
					 | 
				
			||||||
#include "capwap.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "cw_log.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int cw_readmsg_configuration_status_response(uint8_t *elems,int elems_len)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	uint8_t * elem;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	cw_foreach_elem(elem,elems,elems_len){
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		int type = cw_get_elem_type(elem);
 | 
					 | 
				
			||||||
		int len = cw_get_elem_len(elem);
 | 
					 | 
				
			||||||
		uint8_t *data = cw_get_elem_data(elem);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		cw_dbg_msgelem(CW_MSG_CONFIGURATION_STATUS_RESPONSE, type, data, len);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		cw_readelem_vendor_specific_payload(elem,CW_MSG_CONFIGURATION_STATUS_RESPONSE, type,data,len );
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1,52 +0,0 @@
 | 
				
			|||||||
#include <stdio.h>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "capwap.h"
 | 
					 | 
				
			||||||
#include "cw_log.h"
 | 
					 | 
				
			||||||
#include "cw_util.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
struct eparm {
 | 
					 | 
				
			||||||
	int * mand;
 | 
					 | 
				
			||||||
	uint32_t result_code;
 | 
					 | 
				
			||||||
	struct wtpinfo * wtpinfo;
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static int readelem(void * eparm,int type,uint8_t* msgelem,int len)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	struct eparm * e = (struct eparm*)eparm;
 | 
					 | 
				
			||||||
	cw_dbg_msgelem(CW_MSG_CHANGE_STATE_EVENT_REQUEST,type,msgelem,len);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return 0;
 | 
					 | 
				
			||||||
//foundX:
 | 
					 | 
				
			||||||
	cw_mand_elem_found(e->mand,type);
 | 
					 | 
				
			||||||
	return 1;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int cwread_wtp_event_request(struct wtpinfo * wtpinfo, uint8_t * msg, int len)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	int mand[] = {
 | 
					 | 
				
			||||||
		-1};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	struct eparm eparm;
 | 
					 | 
				
			||||||
	eparm.wtpinfo = wtpinfo;
 | 
					 | 
				
			||||||
	eparm.mand=mand;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	cw_dbg(DBG_ELEM,"Reading wtp event request, len=%d",len);
 | 
					 | 
				
			||||||
	cw_foreach_msgelem(msg,len,readelem,&eparm);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if (cw_is_missing_mand_elems(mand)){
 | 
					 | 
				
			||||||
		char str[512];
 | 
					 | 
				
			||||||
		cw_get_missing_mand_elems(str,mand);
 | 
					 | 
				
			||||||
		cw_dbg(DBG_CW_RFC, "Missing msgelems in change state event request: %s",str);
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return eparm.result_code;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user