Inital commit
FossilOrigin-Name: 2b08b7701d9cf1bb3b54a86ab6900d2258513d01582a0338b615badf6b688144
This commit is contained in:
28
src/capwap/cw_in_check_join_req.c
Normal file
28
src/capwap/cw_in_check_join_req.c
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
#include "capwap.h"
|
||||
#include "intavltree.h"
|
||||
#include "dbg.h"
|
||||
#include "cw_log.h"
|
||||
#include "capwap_items.h"
|
||||
|
||||
int cw_in_check_join_req(struct conn *conn, struct cw_action_in *a, uint8_t * data,
|
||||
int len)
|
||||
{
|
||||
|
||||
cw_action_in_t * mlist[60];
|
||||
|
||||
/* Check for mandatory elements */
|
||||
int n = cw_check_missing_mand(mlist,conn,a);
|
||||
if (n) {
|
||||
cw_dbg_missing_mand(DBG_ELEM,conn,mlist,n,a);
|
||||
conn->capwap_state=CW_STATE_JOIN;
|
||||
return CW_RESULT_MISSING_MAND_ELEM;
|
||||
}
|
||||
|
||||
|
||||
/* set result code to ok and change to configure state */
|
||||
cw_itemstore_set_dword(conn->local,CW_ITEM_RESULT_CODE,0);
|
||||
conn->capwap_state = CW_STATE_CONFIGURE;
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user