Replaced by cw_str...

FossilOrigin-Name: 0e08cb1e70aeee3f89c9d481c58735fd303d29701d65649e1491a13514138e63
This commit is contained in:
7u83@mail.ru 2015-04-04 08:50:05 +00:00
parent 0abb8408f7
commit 3b28d372a9
2 changed files with 0 additions and 280 deletions

View File

@ -1,176 +0,0 @@
/*
This file is part of libcapwap.
libcapwap is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
libcapwap is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
*/
#include "capwap.h"
#include "capwap_80211.h"
const char * cw_msgelemtostr(int elem_id)
{
switch (elem_id){
case CW_ELEM_AC_DESCRIPTOR:
return "AC Descriptor";
case CW_ELEM_AC_IPV4_LIST:
return "AC IPv4 List";
case CW_ELEM_AC_IPV6_LIST:
return "AC IPv6 List";
case CW_ELEM_AC_NAME:
return "AC Name";
/*
AC Name with Priority 5
AC Timestamp 6
Add MAC ACL Entry 7
Add Station 8
Reserved 9
*/
case CWMSGELEM_CONTROL_IPV4_ADDRESS:
return "Ctrl IPv4 addr";
case CWMSGELEM_CONTROL_IPV6_ADDRESS:
return "ctrl IPv6 addr";
case CWMSGELEM_CAPWAP_LOCAL_IPV4_ADDRESS:
return "CAPWAP local IPv4 addr";
case CWMSGELEM_CAPWAP_LOCAL_IPV6_ADDRESS:
return "CAPWAP local IPv6 addr";
case CW_ELEM_CAPWAP_TIMERS:
return "CAWPAP Timers";
/* CAPWAP Transport Protocol 51
Data Transfer Data 13
Data Transfer Mode 14
Decryption Error Report 15
*/
case CW_ELEM_DECRYPTION_ERROR_REPORT_PERIOD:
return "Decryption Error Report Period";
/*
Decryption Error Report Period 16
Delete MAC ACL Entry 17
Delete Station 18
Reserved 19
*/
case CW_ELEM_DISCOVERY_TYPE:
return "discovery type";
/*
Duplicate IPv4 Address 21
Duplicate IPv6 Address 22
*/
case CWMSGELEM_ECN_SUPPORT:
return "ECN support";
case CW_ELEM_IDLE_TIMEOUT:
return "Idle Timeout";
case CW_ELEM_IMAGE_DATA:
return "Image Data";
case CW_ELEM_IMAGE_IDENTIFIER:
return "Image Identifier";
/* Image Information 26
Initiate Download 27
*/
case CWMSGELEM_LOCATION_DATA:
return "Location Data";
case CWMSGELEM_MAXIMUM_MESSAGE_LENGTH:
return "Maximum Message Length";
case CWMSGELEM_MTU_DISCOVERY_PADDING:
return "mtu discovery padding";
case CWMSGELEM_RADIO_ADMINISTRATIVE_STATE:
return "radio administrative state";
case CW_ELEM_RADIO_OPERATIONAL_STATE:
return "Radio Operational State";
case CW_ELEM_RESULT_CODE:
return "Result Code";
/* Returned Message Element 34
*/
case CW_ELEM_SESSION_ID:
return "Session ID";
case CW_ELEM_STATISTICS_TIMER:
return "Statistics Timer";
case CW_ELEM_VENDOR_SPECIFIC_PAYLOAD:
return "Vendor Specific Payload";
case CW_ELEM_WTP_BOARD_DATA:
return "WTP Board Data";
case CW_ELEM_WTP_DESCRIPTOR:
return "wtp descriptor";
case CW_ELEM_WTP_FALLBACK:
return "WTP Fallback";
case CW_ELEM_WTP_FRAME_TUNNEL_MODE:
return "Frame Tunnel Mode";
/* case CWMSGELEM_RESERVED_1:
return "reserved (42)";
*/
case CW_ELEM_WTP_IPV4_IP_ADDRESS:
return "WTP IPv4 IP Address";
/*
Reserved 43
*/
case CW_ELEM_WTP_MAC_TYPE:
return "Mac Type";
case CW_ELEM_WTP_NAME:
return "WTP Name";
/*
Unused/Reserved 46
WTP Radio Statistics 47
*/
case CWMSGELEM_WTP_REBOOT_STATISTICS:
return "WTP Reboot Statistics";
case CW_ELEM_WTP_STATIC_IP_ADDRESS_INFORMATION: /*49*/
return "WTP Static IP Addr Info";
case CWMSGELEM_80211_WTP_RADIO_INFO:
return "802.11: wtp radio info";
case XCWMSGELEM_CAPWAP_LOCAL_IP_ADDRESS:
return "local ip v4/v6 address";
case XCWMSGELEM_CAPWAP_RADIO_INFO:
return "radio info";
}
return "unknown";
}

View File

@ -1,104 +0,0 @@
/*
This file is part of libcapwap.
libcapwap is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
libcapwap is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
*/
#include "capwap.h"
const char * cw_msgtostr(int type)
{
switch(type){
case CW_MSG_DISCOVERY_REQUEST:
return "Discovery Request";
case CW_MSG_DISCOVERY_RESPONSE:
return "Discovery Response";
case CW_MSG_JOIN_REQUEST:
return "join request";
case CW_MSG_JOIN_RESPONSE:
return "join response";
case CW_MSG_CONFIGURATION_STATUS_REQUEST:
return "Configuration Status Request";
case CW_MSG_CONFIGURATION_STATUS_RESPONSE:
return "Configuration Status Response";
case CW_MSG_CONFIGURATION_UPDATE_REQUEST:
return "configuration update request";
case CW_MSG_CONFIGURATION_UPDATE_RESPONSE:
return "configuration update response";
case CW_MSG_WTP_EVENT_REQUEST:
return "wtp event request";
case CW_MSG_WTP_EVENT_RESPONSE:
return "wtp event response";
case CW_MSG_CHANGE_STATE_EVENT_REQUEST:
return "change state event request";
case CW_MSG_CHANGE_STATE_EVENT_RESPONSE:
return "change state event response";
/*
Change State Event Request 11
Change State Event Response 12
*/
case CW_MSG_ECHO_REQUEST:
return "echo request";
case CW_MSG_ECHO_RESPONSE:
return "echo response";
case CW_MSG_IMAGE_DATA_REQUEST:
return "image data request";
case CW_MSG_IMAGE_DATA_RESPONSE:
return "image data response";
/* Image Data Request 15
Image Data Response 16
*/
case CW_MSG_RESET_REQUEST:
return "reset request";
case CW_MSG_RESET_RESPONSE:
return "reset response";
/*
Reset Request 17
Reset Response 18
*/
case CW_MSG_PRIMARY_DISCOVERY_REQUEST:
return "primary discovery request";
case CW_MSG_PRIMARY_DISCOVERY_RESPONSE:
return "primary discovery response";
/* Data Transfer Request 21
Data Transfer Response 22
Clear Configuration Request 23
Clear Configuration Response 24
Station Configuration Request 25
Station Configuration Response 26
*/
}
return "unknown";
}