Configuration Update Request implemented

FossilOrigin-Name: 512ddfe97e9f76c9db9e3d40d6ec54b48951d9aaec609b63994cab263e9dae1f
This commit is contained in:
7u83@mail.ru
2018-04-18 09:00:44 +00:00
parent d786fa1928
commit 25776eaacf
8 changed files with 93 additions and 22 deletions

View File

@ -462,6 +462,39 @@ static struct cw_ElemDef configuration_status_response_elements[] ={
};
static int configuration_update_request_states[] = {CAPWAP_STATE_RUN,0};
static struct cw_ElemDef configuration_update_request_elements[] ={
{0,0,CAPWAP_ELEM_AC_NAME, 1, 0},
{0,0,CAPWAP_ELEM_RADIO_ADMINISTRATIVE_STATE, 1, 0},
{0,0,CAPWAP_ELEM_STATISTICS_TIMER, 1, 0},
{0,0,CAPWAP_ELEM_WTP_REBOOT_STATISTICS, 1, 0},
{0,0,CAPWAP_ELEM_VENDOR_SPECIFIC_PAYLOAD, 0, CW_IGNORE},
{0,0,0,0,0}
};
static int echo_request_states[] = {CAPWAP_STATE_RUN,0};
static struct cw_ElemDef echo_request_elements[] ={
{0,0,CAPWAP_ELEM_AC_NAME, 1, 0},
{0,0,CAPWAP_ELEM_RADIO_ADMINISTRATIVE_STATE, 1, 0},
{0,0,CAPWAP_ELEM_STATISTICS_TIMER, 1, 0},
{0,0,CAPWAP_ELEM_WTP_REBOOT_STATISTICS, 1, 0},
{0,0,CAPWAP_ELEM_VENDOR_SPECIFIC_PAYLOAD, 0, CW_IGNORE},
{0,0,0,0,0}
};
static int echo_response_states[] = {CAPWAP_STATE_RUN,0};
static struct cw_ElemDef echo_response_elements[] ={
{0,0,0,0,0}
};
static struct cw_MsgDef messages[] = {
{
"Discovery Request",
@ -511,7 +544,36 @@ static struct cw_MsgDef messages[] = {
configuration_status_response_elements /* msg elements */
},
{
"Configuration Update Request", /* name */
CAPWAP_MSG_CONFIGURATION_UPDATE_REQUEST, /* msg type */
CW_ROLE_WTP, /* role */
configuration_update_request_states, /* allowed states */
configuration_update_request_elements /* msg elements */
},
{
"Echo Request", /* name */
CAPWAP_MSG_ECHO_REQUEST, /* msg type */
CW_ROLE_AC, /* role */
echo_request_states, /* allowed states */
echo_request_elements /* msg elements */
},
{
"Echo Response", /* name */
CAPWAP_MSG_ECHO_RESPONSE, /* msg type */
CW_ROLE_WTP, /* role */
echo_response_states, /* allowed states */
echo_response_elements /* msg elements */
},
/* {
"Discovery Request",
CAPWAP_MSG_DISCOVERY_REQUEST,