new cwkt functions
FossilOrigin-Name: 761861b63db1cf750b9ae6da8a9057193b85a6aef7e9ea6fa0c2ac330a3d69e5
This commit is contained in:
63
src/cw/unused/lw_cisco_id_to_str.c
Normal file
63
src/cw/unused/lw_cisco_id_to_str.c
Normal file
@ -0,0 +1,63 @@
|
||||
|
||||
#include "lwapp_cisco.h"
|
||||
|
||||
const char * lw_cisco_id_to_str(int elem_id)
|
||||
{
|
||||
switch (elem_id){
|
||||
case LW_CISCO_AP_LOGHOST_CONFIG:
|
||||
return "AP Loghost Config and Last Joined Controller";
|
||||
case LW_CISCO_PATH_MTU:
|
||||
return "Path MTU";
|
||||
case LW_CISCO_MWAR_HASH_VALUE:
|
||||
return "MWAR Hash Value";
|
||||
case LW_CISCO_MWAR_HASH_VALUE_1:
|
||||
return "MWAR Hah Value 1";
|
||||
case LW_CISCO_AP_USERNAME_PASSWORD:
|
||||
return "AP Username and Password";
|
||||
case LW_CISCO_AC_IP_ADDR_WITH_INDEX:
|
||||
return "AC IP Addr with Index";
|
||||
case LW_CISCO_AP_SUBMODE:
|
||||
return "AP Submode";
|
||||
case LW_CISCO_SSC_HASH_VALIDATION:
|
||||
return "SSC Hash Validation";
|
||||
|
||||
case LW_CISCO_DOT11R_WLC_MAC_AND_IP:
|
||||
return "802.11r WLC MAC and IP";
|
||||
case LW_CISCO_AP_JOIN_IP_PREF_MODE:
|
||||
return "AP Join IP Pref Mode";
|
||||
|
||||
case LW_CISCO_MCAST_MGID_INFO:
|
||||
return "MCAST MGID Info";
|
||||
case LW_CISCO_RADIO_MODULE_INFO:
|
||||
return "Radio Module Info";
|
||||
case LW_CISCO_TELNET_SSH:
|
||||
return "Telnet SSH";
|
||||
case LW_CISCO_AP_DTLS_DATA_CFG:
|
||||
return "AP DTLS Data Config";
|
||||
|
||||
case LW_CISCO_PRIMED_JOIN_TIMEOUT:
|
||||
return "Primed Join Timeout";
|
||||
|
||||
case LW_CISCO_PRIMED_DISCOVERY_TIMEOUT:
|
||||
return "Primed Discovery Timeout";
|
||||
|
||||
case LW_CISCO_RAD_EXTENDED_CONFIG:
|
||||
return "RAD Extended Config";
|
||||
|
||||
case LW_CISCO_MANAGER_IP_ADDR:
|
||||
return "Manager IP Address";
|
||||
|
||||
case LW_CISCO_ADD_WLAN:
|
||||
return "Add WLAN?";
|
||||
|
||||
case LW_CISCO_DELETE_WLAN:
|
||||
return "Delete WLAN?";
|
||||
|
||||
default:
|
||||
return "Unknown";
|
||||
|
||||
}
|
||||
|
||||
return "Unknown";
|
||||
}
|
||||
|
44
src/cw/unused/lw_put_cisco_path_mtu.c
Normal file
44
src/cw/unused/lw_put_cisco_path_mtu.c
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
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/>.
|
||||
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Implementation of lw_put_cisco_path_mtu
|
||||
*/
|
||||
|
||||
#include "lwapp_cisco.h"
|
||||
#include "lw.h"
|
||||
#include "vendors.h"
|
||||
|
||||
/**
|
||||
* Put message element data for Cisco vendor specific LWAPP message
|
||||
* Csico Path MTU.
|
||||
* @param dst destination buffer
|
||||
* @param max maximum MTU
|
||||
* @param padding number of bytes to append
|
||||
* @return number of bytes put to buffer
|
||||
*/
|
||||
int lw_put_cisco_path_mtu(uint8_t *dst, uint16_t max, uint16_t padding)
|
||||
{
|
||||
lw_set_dword(dst,LW_VENDOR_ID_CISCO);
|
||||
lw_set_word(dst+4,LW_CISCO_PATH_MTU);
|
||||
lw_set_word(dst+6,max);
|
||||
lw_set_word(dst+8,padding+4);
|
||||
memset(dst+10,0,padding);
|
||||
return padding+10;
|
||||
}
|
Reference in New Issue
Block a user