Moved a lot of macros from capwap.h to cw.h

FossilOrigin-Name: 09114fbdffe3dd78d32f93da671f8f0cf9c40056a7b8f93114b12646f25db512
This commit is contained in:
7u83@mail.ru
2016-03-11 21:23:00 +00:00
parent 4a529fec12
commit d4ddbc0618
40 changed files with 385 additions and 413 deletions

View File

@ -21,7 +21,7 @@
* @brief implementation of cw_put_msg.
*/
#include "capwap.h"
#include "cw.h"
#include "capwap_items.h"
#include "conn.h"
@ -73,6 +73,7 @@ int cw_put_msg(struct conn *conn, uint8_t * rawout)
cw_action_out_t *ae=(cw_action_out_t*)e->data;
DBGX("Put %d %i %p\n",ae->msg_id,ae->elem_id,ae->item_id);
printf("Put %d %i %s\n",ae->msg_id,ae->elem_id,ae->item_id);
DBGX("Elem ID %s",ae->item_id);
if ( ae->item_id ) {
DBGX("Item ID: %s %p",ae->item_id,CW_ITEM_NONE);
@ -84,8 +85,13 @@ int cw_put_msg(struct conn *conn, uint8_t * rawout)
}
if (ae->out) {
int l=0;
printf("Out Call with len =%d\n",len);
l= ae->out(conn, ae, dst+len);
printf("Returned len = %d\n",l);
len +=l;