From 34f1d85e894d76e7d9816e4812799f9ab7206e9c Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sat, 5 Mar 2016 17:21:52 +0000 Subject: [PATCH] Added config status response elements. FossilOrigin-Name: deba5a2a35a204fd37e09639d74220a95813bef34f1fa9c963d2b8a8a3ba310c --- src/mod/capwap/Makefile | 3 ++- src/mod/capwap/capwap_actions_ac.c | 33 ++++++++++++++++++++++++++++-- src/mod/capwap/mod_capwap.h | 2 ++ 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/src/mod/capwap/Makefile b/src/mod/capwap/Makefile index 48b3fe9d..0af8992b 100644 --- a/src/mod/capwap/Makefile +++ b/src/mod/capwap/Makefile @@ -8,7 +8,8 @@ OBJS=\ capwap_in_wtp_board_data.o \ capwap_out_wtp_descriptor.o \ capwap_out_ac_descriptor.o \ - capwap_out_get_session_id.o + capwap_out_get_session_id.o \ + capwap_out_get_idle_timeout.o NAME=libcapwap.a diff --git a/src/mod/capwap/capwap_actions_ac.c b/src/mod/capwap/capwap_actions_ac.c index 473c2a07..5aa0c615 100644 --- a/src/mod/capwap/capwap_actions_ac.c +++ b/src/mod/capwap/capwap_actions_ac.c @@ -115,8 +115,6 @@ static cw_action_in_t actions_in[] = { /* --------------------------------------------------------------------------- * Join Request */ - - { .capwap_state = CW_STATE_JOIN, .msg_id = CW_MSG_JOIN_REQUEST, @@ -237,6 +235,19 @@ static cw_action_in_t actions_in[] = { + /* --------------------------------------------------------------------------- + * Configuration Status Request + */ + { + .capwap_state = CW_STATE_CONFIGURE, + .msg_id = CW_MSG_CONFIGURATION_STATUS_REQUEST, +// .end = cw_in_check_join_req + } + , + + + + /* End of list */ {0, 0} }; @@ -286,6 +297,8 @@ static cw_action_out_t actions_out[]={ * Join Response Message */ + /* Result Code - Join Response */ + { .msg_id = CW_MSG_JOIN_RESPONSE, .elem_id = CW_ELEM_RESULT_CODE, @@ -296,6 +309,22 @@ static cw_action_out_t actions_out[]={ } , + /* --------------------------------------------------- + * Configuration Status Response Message + */ + + { + .msg_id = CW_MSG_CONFIGURATION_STATUS_RESPONSE, + .elem_id = CW_ELEM_IDLE_TIMEOUT, + .item_id = CW_ITEM_IDLE_TIMEOUT, + .out = cw_out_generic, + .get = capwap_out_get_idle_timeout, + .mand = 1 + } + , + + + {0,0} }; diff --git a/src/mod/capwap/mod_capwap.h b/src/mod/capwap/mod_capwap.h index f8d706b4..6f4ba9a8 100644 --- a/src/mod/capwap/mod_capwap.h +++ b/src/mod/capwap/mod_capwap.h @@ -18,5 +18,7 @@ extern int capwap_out_ac_descriptor(struct conn *conn,struct cw_action_out * a,u extern struct mbag_item * capwap_out_get_session_id(struct conn *conn,struct cw_action_out * a); +extern struct mbag_item * capwap_out_get_idle_timeout(struct conn *conn,struct cw_action_out * a); + #endif