More Join Message Elements added

FossilOrigin-Name: 8948a1bf0e34873bbc9f9744e1bbb13049079b829a49944a1331d973c7350f01
This commit is contained in:
7u83@mail.ru
2018-04-03 16:11:14 +00:00
parent 43c5b27523
commit 13fd5bdc27
10 changed files with 25 additions and 10 deletions

View File

@ -179,6 +179,18 @@ static struct cw_ElemHandler handlers[] = {
cw_out_generic /* put */
}
,
{
"Session ID", /* name */
CAPWAP_ELEM_SESSION_ID, /* Element ID */
0,0, /* Vendor / Proto */
CAPWAP_SESSION_ID_LEN,CAPWAP_SESSION_ID_LEN, /* min/max length */
CW_TYPE_BSTR16, /* type */
"session-id", /* Key */
cw_in_generic, /* get */
cw_out_generic /* put */
}
,
{0,0,0,0,0,0,0,0}
@ -216,7 +228,7 @@ static struct cw_ElemDef join_request_elements[] ={
{0,0,CAPWAP_ELEM_WTP_BOARD_DATA, 1, 0},
{0,0,CAPWAP_ELEM_WTP_DESCRIPTOR, 1, 0},
{0,0,CAPWAP_ELEM_WTP_NAME, 1, 0},
/* Session ID */
{0,0,CAPWAP_ELEM_SESSION_ID, 1, 0},
{0,0,CAPWAP_ELEM_WTP_FRAME_TUNNEL_MODE, 1, 0},
{0,0,CAPWAP_ELEM_WTP_MAC_TYPE, 1, 0},

View File

@ -555,7 +555,7 @@ static cw_action_out_t actions_out[] = {
/* Session ID - Join Request */
{
.msg_id = CAPWAP_MSG_JOIN_REQUEST,
.elem_id = CW_ELEM_SESSION_ID,
.elem_id = CAPWAP_ELEM_SESSION_ID,
.item_id = CW_ITEM_SESSION_ID,
.out = cw_out_generic,
.get = cw_out_get_session_id,

View File

@ -94,7 +94,7 @@ static cw_action_in_t actions_in[] = {
/* Cisco uses 4 byte session ids */
.capwap_state = CAPWAP_STATE_JOIN,
.msg_id = CW_MSG_JOIN_REQUEST,
.elem_id = CW_ELEM_SESSION_ID,
.elem_id = CAPWAP_ELEM_SESSION_ID,
.start = cw_in_generic2,
.item_id = CW_ITEM_SESSION_ID,
.mand = 1,