From 7f7d763e8601b291f778ecbd8edab718824647f0 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Mon, 14 Mar 2016 16:18:37 +0000 Subject: [PATCH] More msg elems added. FossilOrigin-Name: 2fe304a4420e05d3f2dc2ea6497ca224170eca724b0e626cc8814ab4538dfc11 --- src/mod/capwap/capwap_actions_ac.c | 9 +++++---- src/mod/capwap/capwap_actions_wtp.c | 18 +++++++++++++++++- src/wtp/configure.c | 1 - 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/mod/capwap/capwap_actions_ac.c b/src/mod/capwap/capwap_actions_ac.c index d9d18801..c1225188 100644 --- a/src/mod/capwap/capwap_actions_ac.c +++ b/src/mod/capwap/capwap_actions_ac.c @@ -502,7 +502,9 @@ static cw_action_out_t actions_out[]={ } , - /* --------------------------------------------------- + + + /* -------------------------------------------------------------------------- * Join Response Message */ @@ -562,9 +564,8 @@ static cw_action_out_t actions_out[]={ , - - /* --------------------------------------------------- - * Configuration Status Response Message + /* -------------------------------------------------------------------------- + * Configuration Status Response Message - OUT */ { diff --git a/src/mod/capwap/capwap_actions_wtp.c b/src/mod/capwap/capwap_actions_wtp.c index ff19a2f3..fc3fc791 100644 --- a/src/mod/capwap/capwap_actions_wtp.c +++ b/src/mod/capwap/capwap_actions_wtp.c @@ -199,10 +199,26 @@ static cw_action_in_t actions_in[] = { .start = cw_in_generic2, .min_len = 4, .max_len = 4, - .mand = 0 + .mand = 1 } , + /* Capwap Timers - Config Status Resp */ + { + .capwap_state = CW_STATE_CONFIGURE, + .msg_id = CW_MSG_CONFIGURATION_STATUS_RESPONSE, + .elem_id = CW_ELEM_CAPWAP_TIMERS, + .item_id = CW_ITEM_CAPWAP_TIMERS, + .start = cw_in_generic2, + .min_len = 2, + .max_len = 2, + .mand = 1 + } + , + + + + /* Result Code - Config Status Resp */ { .capwap_state = CW_STATE_CONFIGURE, diff --git a/src/wtp/configure.c b/src/wtp/configure.c index 5d177296..b3e51ced 100644 --- a/src/wtp/configure.c +++ b/src/wtp/configure.c @@ -15,7 +15,6 @@ int configure() mbag_del_all(conn->incomming); - printf("Putting AC NAME\n"); mbag_set_str(conn->local,CW_ITEM_AC_NAME,"abc");