2015-04-29 19:24:22 +02:00
|
|
|
#include "item.h"
|
|
|
|
|
|
|
|
#include "capwap_items.h"
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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";
|
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_RADIO_ADMINISTRATIVE_STATE[]="radio_admin_state";
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
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";
|
|
|
|
const char CW_ITEM_AC_HASH_VALUE[]="ac_hash_value";
|
|
|
|
|
|
|
|
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 */
|
|
|
|
const char CW_ITEM_WTP_GROUP_NAME[]="wtp_group_name";
|
|
|
|
|
|
|
|
|
|
|
|
/* 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";
|
|
|
|
|
|
|
|
/** 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_AP_MODE_AND_TYPE[]="cisco_ap_mode_and_type";
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
|
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";
|
|
|
|
const char CW_ITEM_WTP_BOARD_MACADDRESS[]="wtp_board_macadddress";
|
|
|
|
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[] = {
|
|
|
|
|
|
|
|
{CW_ITEM_WTP_NAME,CW_ITEM_NONE,MBAG_STR},
|
2015-05-04 07:40:29 +02:00
|
|
|
{CW_ITEM_WTP_MAC_TYPE,CW_ITEM_NONE,MBAG_BYTE},
|
|
|
|
{CW_ITEM_WTP_FRAME_TUNNEL_MODE,CW_ITEM_NONE,MBAG_BYTE},
|
2015-05-01 12:45:18 +02:00
|
|
|
{CW_ITEM_LOCATION_DATA,CW_ITEM_NONE,MBAG_STR},
|
|
|
|
{CW_ITEM_WTP_HARDWARE_VERSION,CW_ITEM_NONE,MBAG_VENDORSTR},
|
|
|
|
{CW_ITEM_WTP_SOFTWARE_VERSION,CW_ITEM_NONE,MBAG_VENDORSTR},
|
2015-05-01 20:34:50 +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},
|
2015-05-04 07:40:29 +02:00
|
|
|
{CW_ITEM_IDLE_TIMEOUT,CW_ITEM_NONE,MBAG_DWORD},
|
|
|
|
{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},
|
2015-05-02 10:45:16 +02:00
|
|
|
|
2015-05-01 12:45:18 +02:00
|
|
|
|
2015-05-04 07:40:29 +02:00
|
|
|
{CW_ITEM_AP_MODE_AND_TYPE,CW_ITEM_NONE,MBAG_WORD},
|
|
|
|
|
|
|
|
/* Board Data */
|
2015-05-01 12:45:18 +02:00
|
|
|
{CW_ITEM_WTP_BOARD_DATA,CW_ITEM_NONE,MBAG_MBAG},
|
2015-05-04 07:40:29 +02:00
|
|
|
{CW_ITEM_WTP_BOARD_DATA,CW_ITEM_WTP_BOARD_VENDOR,MBAG_DWORD},
|
|
|
|
{CW_ITEM_WTP_BOARD_DATA,CW_ITEM_WTP_BOARD_MODELNO,MBAG_BSTR16},
|
|
|
|
{CW_ITEM_WTP_BOARD_DATA,CW_ITEM_WTP_BOARD_SERIALNO,MBAG_BSTR16},
|
|
|
|
|
|
|
|
|
|
|
|
/* Cisco Specific items, should be moved to a file like
|
|
|
|
cisco_items or so */
|
2015-04-29 19:24:22 +02:00
|
|
|
|
2015-05-01 20:34:50 +02:00
|
|
|
{CW_ITEM_AP_MODE_AND_TYPE,CW_ITEM_NONE,MBAG_WORD},
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct cw_itemdef capwap_radiodefs[] = {
|
|
|
|
|
|
|
|
|
|
|
|
{CW_ITEM_NONE}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|