Added some missing message elements.
FossilOrigin-Name: 53a37c69650f5f33ed79033c3328f194b80fcef22224b93fb0b545ecd27ae906
This commit is contained in:
parent
a625682ac1
commit
6e5bae3735
@ -131,7 +131,7 @@ static cw_action_in_t actions_in[] = {
|
||||
{
|
||||
.capwap_state = CW_STATE_JOIN,
|
||||
.msg_id = CW_MSG_JOIN_RESPONSE,
|
||||
.elem_id = CW_ELEM_ECN_SUÜPPRT,
|
||||
.elem_id = CW_ELEM_ECN_SUPPORT,
|
||||
.item_id = CW_ITEM_ECN_SUPPORT,
|
||||
.start = cw_in_generic2,
|
||||
.min_len = 1,
|
||||
@ -140,6 +140,44 @@ static cw_action_in_t actions_in[] = {
|
||||
}
|
||||
,
|
||||
|
||||
/* CAPWAP Control IPv4 Address - Join Response*/
|
||||
{
|
||||
.capwap_state = CW_STATE_JOIN,
|
||||
.msg_id = CW_MSG_JOIN_RESPONSE,
|
||||
.elem_id = CW_ELEM_CAPWAP_CONTROL_IPV4_ADDRESS,
|
||||
.item_id = CW_ITEM_CAPWAP_CONTROL_IP_ADDRESS_LIST,
|
||||
.start = cw_in_capwap_control_ip_address,
|
||||
.min_len = 6,
|
||||
.max_len = 6,
|
||||
.mand = 1
|
||||
}
|
||||
,
|
||||
|
||||
/* CAPWAP Control IPv6 Address - Join Response*/
|
||||
{
|
||||
.capwap_state = CW_STATE_JOIN,
|
||||
.msg_id = CW_MSG_JOIN_RESPONSE,
|
||||
.elem_id = CW_ELEM_CAPWAP_CONTROL_IPV6_ADDRESS,
|
||||
.item_id = CW_ITEM_CAPWAP_CONTROL_IP_ADDRESS_LIST,
|
||||
.start = cw_in_capwap_control_ip_address, // Change to v6 handler
|
||||
.min_len = 18,
|
||||
.max_len = 18,
|
||||
.mand = 1
|
||||
}
|
||||
,
|
||||
|
||||
|
||||
/* Maximum Message Length - Join Response */
|
||||
{
|
||||
.capwap_state = CW_STATE_JOIN,
|
||||
.msg_id = CW_MSG_JOIN_RESPONSE,
|
||||
.elem_id = CW_ELEM_MAXIMUM_MESSAGE_LENGTH,
|
||||
.start = cw_in_generic2,
|
||||
.item_id = CW_ITEM_MAXIMUM_MESSAGE_LENGTH,
|
||||
.min_len = 2,
|
||||
.max_len = 2
|
||||
}
|
||||
,
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
|
@ -21,6 +21,36 @@ static cw_action_in_t actions_wtp_in[] = {
|
||||
* Discovery Resquest
|
||||
*/
|
||||
|
||||
/* 802.11 Radio Inmformation - Discovery Response */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_RESPONSE,
|
||||
.elem_id = CW_ELEM80211_WTP_RADIO_INFORMATION,
|
||||
.item_id = "radio_information",
|
||||
.start = cw_in_radio_generic,
|
||||
.mand = 1,
|
||||
.min_len = 5,
|
||||
.max_len = 5
|
||||
}
|
||||
,
|
||||
|
||||
/* --------------------------------------------------------
|
||||
* Join Response
|
||||
*/
|
||||
|
||||
/* 802.11 Radio Inmformation - Join Response */
|
||||
{
|
||||
.capwap_state = CW_STATE_JOIN,
|
||||
.msg_id = CW_MSG_JOIN_RESPONSE,
|
||||
.elem_id = CW_ELEM80211_WTP_RADIO_INFORMATION,
|
||||
.item_id = "radio_information",
|
||||
.start = cw_in_radio_generic,
|
||||
.mand = 1,
|
||||
.min_len = 5,
|
||||
.max_len = 5
|
||||
}
|
||||
,
|
||||
|
||||
|
||||
|
||||
// {0, 0, CW_STATE_DISCOVERY, CW_MSG_DISCOVERY_REQUEST,
|
||||
|
@ -33,6 +33,19 @@
|
||||
static cw_action_in_t actions_in[] = {
|
||||
|
||||
|
||||
/* ECN Support - Join Request */
|
||||
{
|
||||
.capwap_state = CW_STATE_JOIN,
|
||||
.msg_id = CW_MSG_JOIN_RESPONSE,
|
||||
.elem_id = CW_ELEM_ECN_SUPPORT,
|
||||
.item_id = CW_ITEM_ECN_SUPPORT,
|
||||
.start = cw_in_generic2,
|
||||
.mand = 0,
|
||||
.min_len = 1,
|
||||
.max_len = 1
|
||||
}
|
||||
,
|
||||
|
||||
|
||||
|
||||
/* End of list */
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include "cw/vendors.h"
|
||||
|
||||
extern int cisco_register_actions80211_ac(struct cw_actiondef *def);
|
||||
extern int cisco_register_actions80211_wtp(struct cw_actiondef *def);
|
||||
extern int cisco_register_actions_wtp(struct cw_actiondef *def);
|
||||
|
||||
static int register_actions(struct cw_actiondef *actions, int mode)
|
||||
@ -45,7 +45,7 @@ static int register_actions(struct cw_actiondef *actions, int mode)
|
||||
return 1;
|
||||
}
|
||||
cmod->register_actions(actions, MOD_MODE_BINDINGS);
|
||||
int rc = cisco_register_actions80211_ac(actions);
|
||||
int rc = cisco_register_actions80211_wtp(actions);
|
||||
cw_dbg(DBG_INFO, "Initialized mod cisco 80211 with %d actions", rc);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user