More actions

FossilOrigin-Name: 8cc07ff7f590439a1186c57378e7c9096bf8e363e721afc77ceab2c1a36e5e18
This commit is contained in:
7u83@mail.ru
2016-04-02 14:53:04 +00:00
parent 1a36db841f
commit e9396442de
4 changed files with 77 additions and 11 deletions

View File

@ -26,6 +26,8 @@
#include "cw/capwap_cisco.h"
#include "cw/capwap80211.h"
#include "cw/capwap80211_items.h"
#include "cw/cipwap_items.h"
#include "cw/lwapp_cisco.h"
#include "mod_cisco.h"
@ -133,6 +135,38 @@ static cw_action_in_t actions_in[] = {
/* ----------------------------------------------------------------
* Configuration Status Response
*/
{
/* Cisco's Vendor specific encapsulation
* of LWAPP elements */
.capwap_state = CW_STATE_CONFIGURE,
.msg_id = CW_MSG_CONFIGURATION_STATUS_RESPONSE,
.vendor_id = CW_VENDOR_ID_CISCO,
.elem_id = CW_CISCO_SPAM_VENDOR_SPECIFIC,
.start = lw_in_vendor_specific,
}
,
/* LWAPP Vendor spec Messages */
{
.proto = CW_ACTION_PROTO_LWAPP,
.capwap_state = CW_STATE_CONFIGURE,
.msg_id = CW_MSG_CONFIGURATION_STATUS_RESPONSE,
.vendor_id = LW_VENDOR_ID_CISCO,
.elem_id = LW_CISCO_MWAR_HASH_VALUE,
.item_id = CIPWAP_ITEM_AP_HASH_VALUE,
.start = cw_in_generic2, //cisco_in_telnet_ssh
}
,
/* End of list */
{0, 0}
};

View File

@ -21,10 +21,10 @@ static int register_actions(struct cw_actiondef *actions, int mode)
case MOD_MODE_CAPWAP:
{
struct mod_wtp *cmod = modload_wtp("capwap");
struct mod_wtp *cmod = modload_wtp("cipwap");
if (!cmod) {
cw_log(LOG_ERR,
"Can't initzialize mod_cisco, failed to load base mod mod_capwap");
"Can't initzialize mod_cisco, failed to load base mod mod_cipwap");
return 1;
}