Some work on WTP.
FossilOrigin-Name: 6ec1370311c5b83dc78adbfb75f8241e0916b171a9c0f939d24ec28ebdf908c8
This commit is contained in:
		@ -103,10 +103,28 @@ int readelem_cisco_rad_name(struct conn *conn,struct cw_action * a,uint8_t *data
 | 
			
		||||
#include "capwap/capwap_crypto.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#include "capwap/mbag.h"
 | 
			
		||||
 | 
			
		||||
int main (int argc, const char * argv[]) 
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
	mbag_t data = mbag_create();
 | 
			
		||||
 | 
			
		||||
	mbag_set_byte(data,1,25);
 | 
			
		||||
	mbag_set_byte(data,7,125);
 | 
			
		||||
 | 
			
		||||
	int b = mbag_get_byte(data,1,255);
 | 
			
		||||
	printf("Result: %d\n",b);
 | 
			
		||||
 | 
			
		||||
	mbag_del(data,1);
 | 
			
		||||
	b = mbag_get_byte(data,1,255);
 | 
			
		||||
	printf("Result: %d\n",b);
 | 
			
		||||
 | 
			
		||||
	//return 0;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
	intavltree_t t = intavltree_create();
 | 
			
		||||
 | 
			
		||||
@ -437,7 +437,7 @@ static void wtpman_run(void *arg)
 | 
			
		||||
	if (conn->capwap_state == CW_STATE_IMAGE_DATA) {
 | 
			
		||||
		/* Image upload */
 | 
			
		||||
		const char *filename =
 | 
			
		||||
		    cw_itemstore_get_str(conn->outgoing, CW_ITEM_IMAGE_FILENAME);
 | 
			
		||||
		    cw_itemstore_get_str(conn->outgoing, CW_ITEM_IMAGE_FILENAME,NULL);
 | 
			
		||||
		if (!filename) {
 | 
			
		||||
			cw_log(LOG_ERR,
 | 
			
		||||
			       "Can't send image to %s. No Image Filename Item found.",
 | 
			
		||||
@ -455,7 +455,7 @@ static void wtpman_run(void *arg)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		DEFINE_CLOCK(clk);
 | 
			
		||||
		CLOCK_DEFINE(clk);
 | 
			
		||||
		cw_clock_start(&clk);
 | 
			
		||||
 | 
			
		||||
		cw_item_t *eof = cw_itemstore_set_const_ptr(conn->outgoing, CW_ITEM_IMAGE_FILEHANDLE,
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user