2018-03-03 17:42:28 +01:00
|
|
|
#include "mbag.h"
|
2015-04-29 19:24:22 +02:00
|
|
|
#include "item.h"
|
|
|
|
|
|
|
|
#include "capwap_items.h"
|
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
|
2016-03-14 12:27:21 +01:00
|
|
|
const char CW_ITEM_CAPWAP_TRANSPORT_PROTOCOL[]="capwap_transport_protocol";
|
2015-05-01 00:16:54 +02:00
|
|
|
const char CW_ITEM_IDLE_TIMEOUT[]="idle_timeout";
|
|
|
|
const char CW_ITEM_DISCOVERY_TYPE[]="discovery_type";
|
|
|
|
const char CW_ITEM_WTP_NAME[]="wtp_name";
|
2016-03-06 16:47:03 +01:00
|
|
|
const char CW_ITEM_ECN_SUPPORT[]="ecn_support";
|
2016-04-02 16:49:16 +02:00
|
|
|
const char CW_ITEM_WTP_FALLBACK[]="wtp_fallback";
|
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
const char CW_ITEM_WTP_MAC_TYPE[]="wtp_mac_type";
|
|
|
|
const char CW_ITEM_WTP_FRAME_TUNNEL_MODE[]="wtp_frame_tunnel_mode";
|
|
|
|
const char CW_ITEM_WTP_RADIOS_IN_USE[]="max_radios";
|
|
|
|
const char CW_ITEM_WTP_MAX_RADIOS[]="radios_in_use";
|
|
|
|
|
|
|
|
/*
|
|
|
|
const char CW_ITEM_WTP_HARDWARE_VENDOR=
|
|
|
|
*/
|
|
|
|
|
|
|
|
const char CW_ITEM_WTP_HARDWARE_VERSION[]="wtp_hardware_version";
|
2015-05-01 12:45:18 +02:00
|
|
|
const char CW_ITEM_WTP_SOFTWARE_VERSION[]="wtp_software_version";
|
2016-03-25 11:09:48 +01:00
|
|
|
const char CW_ITEM_WTP_BOOT_VERSION[]="wtp_boot_version";
|
|
|
|
const char CW_ITEM_WTP_OTHER_VERSION[]="wtp_other_version";
|
2015-05-01 00:16:54 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
const char CW_ITEM_WTP_SOFTWARE_VENDOR,
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
const char CW_ITEM_WTP_BOOTLOADER_VENDOR,
|
|
|
|
*/
|
|
|
|
const char CW_ITEM_WTP_BOOTLOADER_VERSION[]="wtp_bootloader_version";
|
|
|
|
/*
|
|
|
|
const char CW_ITEM_WTP_OTHERSOFTWARE_VENDOR,
|
|
|
|
const char CW_ITEM_WTP_OTHERSOFTWARE_VERSION,
|
|
|
|
*/
|
|
|
|
const char CW_ITEM_WTP_BOARD_DATA[]="wtp_board_data";
|
2015-05-08 06:41:58 +02:00
|
|
|
const char CW_ITEM_WTP_DESCRIPTOR[]="0wtp_descriptor";
|
2015-05-01 00:16:54 +02:00
|
|
|
const char CW_ITEM_CAPWAP_TIMERS[]="capwap_timers";
|
|
|
|
|
|
|
|
const char CW_ITEM_AC_NAME[]="ac_name";
|
|
|
|
const char CW_ITEM_AC_DESCRIPTOR[]="ac_descriptor";
|
|
|
|
const char CW_ITEM_RESULT_CODE[]="result_code";
|
|
|
|
const char CW_ITEM_AC_STATUS[]="ac_status";
|
|
|
|
|
|
|
|
const char CW_ITEM_AC_HARDWARE_VERSION[]="ac_hardware_version";
|
|
|
|
const char CW_ITEM_AC_SOFTWARE_VERSION[]="ac_software_version";
|
|
|
|
|
|
|
|
const char CW_ITEM_AC_IP_LIST[]="ac_ip_list";
|
|
|
|
const char CW_ITEM_CAPWAP_CONTROL_IP_ADDRESS_LIST[]="capwap_ctrl_ip_addr";
|
|
|
|
const char CW_ITEM_CAPWAP_LOCAL_IP_ADDRESS[]="capwap_local_ip_addr";
|
|
|
|
|
|
|
|
const char CW_ITEM_LOCATION_DATA[]="location_data";
|
|
|
|
const char CW_ITEM_SESSION_ID[]="session_id";
|
2016-03-25 11:02:00 +01:00
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
const char CW_ITEM_AC_TIMESTAMP[]="ac_timestamp";
|
|
|
|
const char CW_ITEM_STATISTICS_TIMER[]="statistics_timer";
|
|
|
|
const char CW_ITEM_WTP_REBOOT_STATISTICS[]="wtp_reboot_statistics";
|
|
|
|
const char CW_ITEM_IMAGE_IDENTIFIER[]="image_identifier";
|
2016-11-06 17:35:56 +01:00
|
|
|
//const char CW_ITEM_AC_HASH_VALUE[]="ac_hash_value";
|
2016-03-25 11:02:00 +01:00
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
const char CW_ITEM_AC_NAME_WITH_PRIORITY[]="ac_name_with_priority";
|
|
|
|
const char CW_ITEM_MAXIMUM_MESSAGE_LENGTH[]="maximum_message_length";
|
|
|
|
|
|
|
|
|
|
|
|
/* CIPWAP and Cisco */
|
2016-04-18 07:40:30 +02:00
|
|
|
//const char CW_ITEM_WTP_GROUP_NAME[]="wtp_group_name";
|
2016-03-25 11:02:00 +01:00
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
|
|
|
|
/* Other Items */
|
|
|
|
const char CW_ITEM_AC_IMAGE_DIR[]="ac_img_dir"; /* Path where WTP images are stored */
|
|
|
|
const char CW_ITEM_IMAGE_FILENAME[]="img_filename"; /* Full path of image filename */
|
|
|
|
const char CW_ITEM_DISCOVERIES[]="discoveries";
|
2016-03-25 11:02:00 +01:00
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
/** FILE handle for uploading and downloading images */
|
|
|
|
const char CW_ITEM_IMAGE_FILEHANDLE[]="image_file_handle";
|
|
|
|
|
|
|
|
const char CW_ITEM_RADIO_CFG[]="radio_cfg";
|
|
|
|
|
|
|
|
const char CW_ITEM_CISCO_BOARD_DATA_OPTIONS[]="cisco_board_data_options";
|
|
|
|
const char CW_ITEM_RADIOS[]="radios";
|
|
|
|
const char CW_ITEM_RADIO_OPER_STATE[]="radio_oper_state";
|
2016-03-25 11:02:00 +01:00
|
|
|
|
2015-05-01 00:16:54 +02:00
|
|
|
|
2015-05-01 12:45:18 +02:00
|
|
|
const char CW_ITEM_WTP_BOARD_VENDOR[]="vendor_id";
|
|
|
|
const char CW_ITEM_WTP_BOARD_MODELNO[]="model_no";
|
2016-03-25 11:02:00 +01:00
|
|
|
const char CW_ITEM_WTP_BOARD_MACADDRESS[]="wtp_board_macaddress";
|
2015-05-01 12:45:18 +02:00
|
|
|
const char CW_ITEM_WTP_BOARD_ID[]="wtp_board_id";
|
|
|
|
const char CW_ITEM_WTP_BOARD_REVISION[]="wtp_board_revision";
|
|
|
|
const char CW_ITEM_WTP_BOARD_SERIALNO[]="serial_no";
|
2015-05-01 13:55:02 +02:00
|
|
|
const char CW_ITEM_RADIO_INFOS[]="radio_infos";
|
2015-05-01 00:16:54 +02:00
|
|
|
|
2015-05-01 12:45:18 +02:00
|
|
|
//const char CW_ITEM_XY[]="wtp_name";
|
2015-05-01 00:16:54 +02:00
|
|
|
|
2015-04-29 19:24:22 +02:00
|
|
|
|
2015-05-01 12:45:18 +02:00
|
|
|
struct cw_itemdef capwap_itemdefs[] = {
|
|
|
|
|
2016-04-02 10:22:52 +02:00
|
|
|
{CW_ITEM_WTP_NAME,CW_ITEM_NONE,MBAG_STR},
|
|
|
|
{CW_ITEM_WTP_MAC_TYPE,CW_ITEM_NONE,MBAG_BYTE},
|
2016-04-18 07:40:30 +02:00
|
|
|
{CW_ITEM_WTP_FRAME_TUNNEL_MODE,CW_ITEM_NONE,MBAG_BYTE},
|
2016-04-02 16:49:16 +02:00
|
|
|
{CW_ITEM_WTP_FALLBACK,CW_ITEM_NONE,MBAG_BYTE},
|
2016-04-02 10:22:52 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Reboot Statistics */
|
|
|
|
{CW_ITEM_WTP_REBOOT_STATISTICS,CW_ITEM_NONE,MBAG_MBAG},
|
|
|
|
{CW_ITEM_WTP_REBOOT_STATISTICS,CW_ITEM_REBOOT_COUNT,MBAG_WORD},
|
|
|
|
{CW_ITEM_WTP_REBOOT_STATISTICS,CW_ITEM_REBOOT_AC_INITIATED_COUNT,MBAG_WORD},
|
|
|
|
{CW_ITEM_WTP_REBOOT_STATISTICS,CW_ITEM_REBOOT_LINK_FAILURE_COUNT,MBAG_WORD},
|
|
|
|
{CW_ITEM_WTP_REBOOT_STATISTICS,CW_ITEM_REBOOT_SW_FAILURE_COUNT,MBAG_WORD},
|
|
|
|
{CW_ITEM_WTP_REBOOT_STATISTICS,CW_ITEM_REBOOT_HW_FAILURE_COUNT,MBAG_WORD},
|
|
|
|
{CW_ITEM_WTP_REBOOT_STATISTICS,CW_ITEM_REBOOT_OTHER_FAILURE_COUNT,MBAG_WORD},
|
|
|
|
{CW_ITEM_WTP_REBOOT_STATISTICS,CW_ITEM_REBOOT_UNKNOWN_FAILURE_COUNT,MBAG_WORD},
|
|
|
|
{CW_ITEM_WTP_REBOOT_STATISTICS,CW_ITEM_REBOOT_LAST_FAILURE_TYPE,MBAG_BYTE},
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-14 19:29:09 +01:00
|
|
|
|
|
|
|
|
2016-03-14 12:27:21 +01:00
|
|
|
{CW_ITEM_CAPWAP_TRANSPORT_PROTOCOL,CW_ITEM_NONE,MBAG_BYTE},
|
|
|
|
|
2015-05-01 12:45:18 +02:00
|
|
|
{CW_ITEM_LOCATION_DATA,CW_ITEM_NONE,MBAG_STR},
|
2018-03-11 11:29:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-18 07:40:30 +02:00
|
|
|
//{CW_ITEM_WTP_GROUP_NAME,CW_ITEM_NONE,MBAG_STR},
|
2015-05-02 10:45:16 +02:00
|
|
|
{CW_ITEM_MAXIMUM_MESSAGE_LENGTH,CW_ITEM_NONE,MBAG_WORD},
|
|
|
|
{CW_ITEM_STATISTICS_TIMER,CW_ITEM_NONE,MBAG_WORD},
|
2018-02-18 14:17:45 +01:00
|
|
|
{CW_ITEM_IDLE_TIMEOUT,CW_ITEM_NONE,MTYPE_DWORD},
|
2015-05-04 07:40:29 +02:00
|
|
|
{CW_ITEM_CAPWAP_TIMERS,CW_ITEM_NONE,MBAG_WORD},
|
2015-05-02 10:45:16 +02:00
|
|
|
|
2015-05-04 07:40:29 +02:00
|
|
|
{CW_ITEM_AC_NAME_WITH_PRIORITY,CW_ITEM_ANY,MBAG_STR},
|
2016-03-05 08:05:46 +01:00
|
|
|
{CW_ITEM_AC_NAME,CW_ITEM_NONE,MBAG_STR},
|
2018-02-18 14:17:45 +01:00
|
|
|
{CW_ITEM_RESULT_CODE,CW_ITEM_NONE,MTYPE_DWORD},
|
2016-03-06 20:54:15 +01:00
|
|
|
{CW_ITEM_ECN_SUPPORT,CW_ITEM_NONE,MBAG_BYTE},
|
|
|
|
{CW_ITEM_DISCOVERY_TYPE,CW_ITEM_NONE,MBAG_BYTE},
|
|
|
|
{ CW_ITEM_SESSION_ID,CW_ITEM_NONE,MBAG_BSTR},
|
|
|
|
|
2015-05-02 10:45:16 +02:00
|
|
|
|
2015-05-01 12:45:18 +02:00
|
|
|
|
2016-03-08 01:20:22 +01:00
|
|
|
//{CW_ITEM_AP_MODE_AND_TYPE,CW_ITEM_NONE,MBAG_WORD},
|
2015-05-04 07:40:29 +02:00
|
|
|
|
|
|
|
/* Board Data */
|
2015-05-01 12:45:18 +02:00
|
|
|
{CW_ITEM_WTP_BOARD_DATA,CW_ITEM_NONE,MBAG_MBAG},
|
2018-02-18 14:17:45 +01:00
|
|
|
{CW_ITEM_WTP_BOARD_DATA,CW_ITEM_WTP_BOARD_VENDOR,MTYPE_DWORD},
|
2015-05-04 07:40:29 +02:00
|
|
|
{CW_ITEM_WTP_BOARD_DATA,CW_ITEM_WTP_BOARD_MODELNO,MBAG_BSTR16},
|
|
|
|
{CW_ITEM_WTP_BOARD_DATA,CW_ITEM_WTP_BOARD_SERIALNO,MBAG_BSTR16},
|
|
|
|
|
|
|
|
|
2016-03-25 11:02:00 +01:00
|
|
|
/* Cisco Specific items, should be moved to a file like
|
2015-05-04 07:40:29 +02:00
|
|
|
cisco_items or so */
|
2015-04-29 19:24:22 +02:00
|
|
|
|
2015-05-04 07:40:29 +02:00
|
|
|
{CW_ITEM_CISCO_BOARD_DATA_OPTIONS,CW_ITEM_NONE,MBAG_BSTR16},
|
2015-05-01 20:34:50 +02:00
|
|
|
|
|
|
|
|
2016-03-11 18:16:13 +01:00
|
|
|
|
2015-04-29 19:24:22 +02:00
|
|
|
|
|
|
|
{CW_ITEM_NONE}
|
2015-05-01 12:45:18 +02:00
|
|
|
|
2015-04-29 19:24:22 +02:00
|
|
|
};
|
|
|
|
|
2015-05-04 07:40:29 +02:00
|
|
|
|
2016-04-02 09:05:07 +02:00
|
|
|
const char CW_RADIOITEM_ADMIN_STATE[]="admin_state";
|
|
|
|
const char CW_RADIOITEM_OPER_STATE[]="oper_state";
|
2016-04-02 16:49:16 +02:00
|
|
|
const char CW_RADIOITEM_DECRYPTION_ERROR_REPORT_PERIOD[]="decryption_error_report_period";
|
2015-05-04 07:40:29 +02:00
|
|
|
|
|
|
|
|
2016-04-18 07:40:30 +02:00
|
|
|
struct cw_itemdef capwap_radioitemdefs[] = {
|
2016-04-02 09:05:07 +02:00
|
|
|
{CW_RADIOITEM_ADMIN_STATE,CW_ITEM_NONE,MBAG_BYTE},
|
|
|
|
{CW_RADIOITEM_OPER_STATE,CW_ITEM_NONE,MBAG_WORD},
|
2015-05-04 07:40:29 +02:00
|
|
|
|
2016-04-18 07:40:30 +02:00
|
|
|
{CW_RADIOITEM_DECRYPTION_ERROR_REPORT_PERIOD,CW_ITEM_NONE,MBAG_WORD},
|
2016-04-02 16:49:16 +02:00
|
|
|
|
2016-04-02 09:05:07 +02:00
|
|
|
{CW_ITEM_NONE}
|
2015-05-04 07:40:29 +02:00
|
|
|
};
|