Got rid of mbag! Works for mod_capwap and wtp
FossilOrigin-Name: af10cb591d1e6db629c886cdbb268a2753bb93012e410e42f65b8385befb9896
This commit is contained in:
@ -1,13 +1,11 @@
|
||||
|
||||
|
||||
#include "cw/mbag.h"
|
||||
#include "cw/action.h"
|
||||
|
||||
|
||||
/*
|
||||
int capwap_in_session_id(struct conn *conn, struct cw_action_in *a, uint8_t * data,
|
||||
int len, struct sockaddr *from){
|
||||
|
||||
memcpy(conn->session_id,data,len);
|
||||
return 1;
|
||||
}
|
||||
|
||||
*/
|
||||
|
@ -1,9 +1,9 @@
|
||||
#include "cw/mbag.h"
|
||||
|
||||
#include "cw/log.h"
|
||||
#include "cw/conn.h"
|
||||
|
||||
#include "cw/mbag.h"
|
||||
#include "cw/capwap_items.h"
|
||||
|
||||
|
||||
#include "cw/capwap.h"
|
||||
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
|
||||
|
||||
#include "cw/mbag.h"
|
||||
#include "cw/action.h"
|
||||
|
||||
|
||||
#include "cw/cw.h"
|
||||
#include "cw/mavl.h"
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
#include "cw/mbag.h"
|
||||
#include "cw/action.h"
|
||||
#include "cw/capwap_items.h"
|
||||
|
||||
|
||||
|
||||
#include "cw/capwap.h"
|
||||
|
||||
|
||||
/*
|
||||
struct mbag_item * capwap_out_get_idle_timeout(struct conn *conn,struct cw_action_out * a)
|
||||
{
|
||||
struct mbag_item * m = mbag_get(conn->config,CW_ITEM_IDLE_TIMEOUT);
|
||||
@ -13,9 +13,9 @@ struct mbag_item * capwap_out_get_idle_timeout(struct conn *conn,struct cw_actio
|
||||
|
||||
return mbag_set_dword(conn->config,CW_ITEM_IDLE_TIMEOUT,CAPWAP_IDLE_TIMEOUT);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
struct mbag_item * capwap_out_get_capwap_timers(struct conn *conn,struct cw_action_out * a)
|
||||
{
|
||||
struct mbag_item * m = mbag_get(conn->local,CW_ITEM_CAPWAP_TIMERS);
|
||||
@ -24,3 +24,4 @@ struct mbag_item * capwap_out_get_capwap_timers(struct conn *conn,struct cw_acti
|
||||
|
||||
return mbag_set_word(conn->local,CW_ITEM_CAPWAP_TIMERS,CW_MAX_DISCOVERY_INTERVAL<<8 | CAPWAP_ECHO_INTERVAL);
|
||||
}
|
||||
*/
|
@ -1,10 +1,10 @@
|
||||
#include "cw/mbag.h"
|
||||
|
||||
#include "cw/conn.h"
|
||||
#include "cw/rand.h"
|
||||
#include "cw/log.h"
|
||||
#include "cw/capwap_items.h"
|
||||
|
||||
|
||||
/*
|
||||
struct mbag_item * capwap_out_get_session_id(struct conn *conn,struct cw_action_out * a)
|
||||
{
|
||||
uint8_t session_id[16];
|
||||
@ -18,4 +18,4 @@ struct mbag_item * capwap_out_get_session_id(struct conn *conn,struct cw_action_
|
||||
}
|
||||
return mbag_set_bstrn(conn->local,CW_ITEM_SESSION_ID,session_id,slen);
|
||||
}
|
||||
|
||||
*/
|
||||
|
Reference in New Issue
Block a user