move the category setting into the element ops
this prepares the element ops for decoding vendor ies into seperate types. It also makes sense to keep all information about a IE in one place.
This commit is contained in:
parent
1436fc9e5f
commit
627a38a556
@ -3,38 +3,6 @@
|
||||
#include "capwap_protocol.h"
|
||||
#include "capwap_array.h"
|
||||
|
||||
/* */
|
||||
int capwap_get_message_element_category(uint16_t type) {
|
||||
switch (type) {
|
||||
case CAPWAP_ELEMENT_ACNAMEPRIORITY:
|
||||
case CAPWAP_ELEMENT_CONTROLIPV4:
|
||||
case CAPWAP_ELEMENT_CONTROLIPV6:
|
||||
case CAPWAP_ELEMENT_DECRYPTERRORREPORTPERIOD:
|
||||
case CAPWAP_ELEMENT_RADIOADMSTATE:
|
||||
case CAPWAP_ELEMENT_RADIOOPRSTATE:
|
||||
case CAPWAP_ELEMENT_RETURNEDMESSAGE:
|
||||
case CAPWAP_ELEMENT_VENDORPAYLOAD:
|
||||
case CAPWAP_ELEMENT_80211_ANTENNA:
|
||||
case CAPWAP_ELEMENT_80211_DIRECTSEQUENCECONTROL:
|
||||
case CAPWAP_ELEMENT_80211_IE:
|
||||
case CAPWAP_ELEMENT_80211_MACOPERATION:
|
||||
case CAPWAP_ELEMENT_80211_MULTIDOMAINCAPABILITY:
|
||||
case CAPWAP_ELEMENT_80211_OFDMCONTROL:
|
||||
case CAPWAP_ELEMENT_80211_RATESET:
|
||||
case CAPWAP_ELEMENT_80211_STATISTICS:
|
||||
case CAPWAP_ELEMENT_80211_SUPPORTEDRATES:
|
||||
case CAPWAP_ELEMENT_80211_TXPOWER:
|
||||
case CAPWAP_ELEMENT_80211_TXPOWERLEVEL:
|
||||
case CAPWAP_ELEMENT_80211_WTP_QOS:
|
||||
case CAPWAP_ELEMENT_80211_WTP_RADIO_CONF:
|
||||
case CAPWAP_ELEMENT_80211_WTPRADIOINFORMATION: {
|
||||
return CAPWAP_MESSAGE_ELEMENT_ARRAY;
|
||||
}
|
||||
}
|
||||
|
||||
return CAPWAP_MESSAGE_ELEMENT_SINGLE;
|
||||
}
|
||||
|
||||
/* */
|
||||
static struct capwap_message_elements_ops* capwap_message_elements[] = {
|
||||
/* CAPWAP_ELEMENT_ACDESCRIPTION */ &capwap_element_acdescriptor_ops,
|
||||
@ -196,7 +164,6 @@ int capwap_parsing_packet(struct capwap_packet_rxmng* rxmngpacket, struct capwap
|
||||
while (bodylength > 0) {
|
||||
uint16_t type;
|
||||
uint16_t msglength;
|
||||
int category;
|
||||
struct capwap_list_item* itemlist;
|
||||
struct capwap_message_element_itemlist* messageelement;
|
||||
struct capwap_message_elements_ops* read_ops;
|
||||
@ -239,8 +206,7 @@ int capwap_parsing_packet(struct capwap_packet_rxmng* rxmngpacket, struct capwap
|
||||
|
||||
/* */
|
||||
itemlist = capwap_get_message_element(packet, type);
|
||||
category = capwap_get_message_element_category(type);
|
||||
if (category == CAPWAP_MESSAGE_ELEMENT_SINGLE) {
|
||||
if (read_ops->category == CAPWAP_MESSAGE_ELEMENT_SINGLE) {
|
||||
/* Check for multiple message element */
|
||||
if (itemlist) {
|
||||
return INVALID_MESSAGE_ELEMENT;
|
||||
@ -259,7 +225,7 @@ int capwap_parsing_packet(struct capwap_packet_rxmng* rxmngpacket, struct capwap
|
||||
|
||||
/* */
|
||||
capwap_itemlist_insert_after(packet->messages, NULL, itemlist);
|
||||
} else if (category == CAPWAP_MESSAGE_ELEMENT_ARRAY) {
|
||||
} else if (read_ops->category == CAPWAP_MESSAGE_ELEMENT_ARRAY) {
|
||||
void* datamsgelement;
|
||||
struct capwap_array* arraymessageelement;
|
||||
|
||||
|
@ -21,7 +21,10 @@ struct capwap_read_message_elements_ops {
|
||||
int (*read_block)(capwap_message_elements_handle handle, uint8_t* data, unsigned short length);
|
||||
};
|
||||
|
||||
struct capwap_message_elements_ops {
|
||||
struct capwap_message_elements_ops
|
||||
{
|
||||
int category;
|
||||
|
||||
/* Build message element */
|
||||
void (*create)(void* data, capwap_message_elements_handle handle, struct capwap_write_message_elements_ops* func);
|
||||
|
||||
|
@ -154,6 +154,7 @@ static void* capwap_80211_addwlan_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_addwlan_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_addwlan_element_create,
|
||||
.parse = capwap_80211_addwlan_element_parsing,
|
||||
.clone = capwap_80211_addwlan_element_clone,
|
||||
|
@ -143,6 +143,7 @@ void capwap_element_80211_antenna_copy(struct capwap_80211_antenna_element* dst,
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_antenna_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_antenna_element_create,
|
||||
.parse = capwap_80211_antenna_element_parsing,
|
||||
.clone = capwap_80211_antenna_element_clone,
|
||||
|
@ -68,6 +68,7 @@ static void capwap_80211_assignbssid_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_assignbssid_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_assignbssid_element_create,
|
||||
.parse = capwap_80211_assignbssid_element_parsing,
|
||||
.clone = capwap_80211_assignbssid_element_clone,
|
||||
|
@ -64,6 +64,7 @@ static void capwap_80211_deletewlan_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_deletewlan_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_deletewlan_element_create,
|
||||
.parse = capwap_80211_deletewlan_element_parsing,
|
||||
.clone = capwap_80211_deletewlan_element_clone,
|
||||
|
@ -80,6 +80,7 @@ static void* capwap_80211_directsequencecontrol_element_parsing(capwap_message_e
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_directsequencecontrol_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_directsequencecontrol_element_create,
|
||||
.parse = capwap_80211_directsequencecontrol_element_parsing,
|
||||
.clone = capwap_80211_directsequencecontrol_element_clone,
|
||||
|
@ -84,6 +84,7 @@ static void capwap_80211_ie_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_ie_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_ie_element_create,
|
||||
.parse = capwap_80211_ie_element_parsing,
|
||||
.clone = capwap_80211_ie_element_clone,
|
||||
|
@ -83,6 +83,7 @@ static void capwap_80211_macoperation_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_macoperation_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_macoperation_element_create,
|
||||
.parse = capwap_80211_macoperation_element_parsing,
|
||||
.clone = capwap_80211_macoperation_element_clone,
|
||||
|
@ -68,6 +68,7 @@ static void capwap_80211_miccountermeasures_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_miccountermeasures_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_miccountermeasures_element_create,
|
||||
.parse = capwap_80211_miccountermeasures_element_parsing,
|
||||
.clone = capwap_80211_miccountermeasures_element_clone,
|
||||
|
@ -73,6 +73,7 @@ static void capwap_80211_multidomaincapability_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_multidomaincapability_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_multidomaincapability_element_create,
|
||||
.parse = capwap_80211_multidomaincapability_element_parsing,
|
||||
.clone = capwap_80211_multidomaincapability_element_clone,
|
||||
|
@ -73,6 +73,7 @@ static void capwap_80211_ofdmcontrol_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_ofdmcontrol_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_ofdmcontrol_element_create,
|
||||
.parse = capwap_80211_ofdmcontrol_element_parsing,
|
||||
.clone = capwap_80211_ofdmcontrol_element_clone,
|
||||
|
@ -73,6 +73,7 @@ static void capwap_80211_rateset_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_rateset_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_rateset_element_create,
|
||||
.parse = capwap_80211_rateset_element_parsing,
|
||||
.clone = capwap_80211_rateset_element_clone,
|
||||
|
@ -101,6 +101,7 @@ static void capwap_80211_rsnaerrorreport_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_rsnaerrorreport_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_rsnaerrorreport_element_create,
|
||||
.parse = capwap_80211_rsnaerrorreport_element_parsing,
|
||||
.clone = capwap_80211_rsnaerrorreport_element_clone,
|
||||
|
@ -89,6 +89,7 @@ static void capwap_80211_station_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_station_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_station_element_create,
|
||||
.parse = capwap_80211_station_element_parsing,
|
||||
.clone = capwap_80211_station_element_clone,
|
||||
|
@ -97,6 +97,7 @@ static void capwap_80211_stationkey_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_stationkey_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_stationkey_element_create,
|
||||
.parse = capwap_80211_stationkey_element_parsing,
|
||||
.clone = capwap_80211_stationkey_element_clone,
|
||||
|
@ -68,6 +68,7 @@ static void capwap_80211_stationqos_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_stationqos_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_stationqos_element_create,
|
||||
.parse = capwap_80211_stationqos_element_parsing,
|
||||
.clone = capwap_80211_stationqos_element_clone,
|
||||
|
@ -141,6 +141,7 @@ static void capwap_80211_statistics_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_statistics_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_statistics_element_create,
|
||||
.parse = capwap_80211_statistics_element_parsing,
|
||||
.clone = capwap_80211_statistics_element_clone,
|
||||
|
@ -73,6 +73,7 @@ static void capwap_80211_supportedrates_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_supportedrates_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_supportedrates_element_create,
|
||||
.parse = capwap_80211_supportedrates_element_parsing,
|
||||
.clone = capwap_80211_supportedrates_element_clone,
|
||||
|
@ -67,6 +67,7 @@ static void capwap_80211_txpower_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_txpower_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_txpower_element_create,
|
||||
.parse = capwap_80211_txpower_element_parsing,
|
||||
.clone = capwap_80211_txpower_element_clone,
|
||||
|
@ -88,6 +88,7 @@ static void capwap_80211_txpowerlevel_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_txpowerlevel_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_txpowerlevel_element_create,
|
||||
.parse = capwap_80211_txpowerlevel_element_parsing,
|
||||
.clone = capwap_80211_txpowerlevel_element_clone,
|
||||
|
@ -84,6 +84,7 @@ static void capwap_80211_updatestationqos_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_updatestationqos_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_updatestationqos_element_create,
|
||||
.parse = capwap_80211_updatestationqos_element_parsing,
|
||||
.clone = capwap_80211_updatestationqos_element_clone,
|
||||
|
@ -105,6 +105,7 @@ static void* capwap_80211_updatewlan_element_parsing(capwap_message_elements_han
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_updatewlan_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_updatewlan_element_create,
|
||||
.parse = capwap_80211_updatewlan_element_parsing,
|
||||
.clone = capwap_80211_updatewlan_element_clone,
|
||||
|
@ -92,6 +92,7 @@ static void capwap_80211_wtpqos_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_wtpqos_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_wtpqos_element_create,
|
||||
.parse = capwap_80211_wtpqos_element_parsing,
|
||||
.clone = capwap_80211_wtpqos_element_clone,
|
||||
|
@ -80,6 +80,7 @@ static void capwap_80211_wtpradioconf_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_wtpradioconf_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_wtpradioconf_element_create,
|
||||
.parse = capwap_80211_wtpradioconf_element_parsing,
|
||||
.clone = capwap_80211_wtpradioconf_element_clone,
|
||||
|
@ -68,6 +68,7 @@ static void capwap_80211_wtpradiofailalarm_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_wtpradiofailalarm_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211_wtpradiofailalarm_element_create,
|
||||
.parse = capwap_80211_wtpradiofailalarm_element_parsing,
|
||||
.clone = capwap_80211_wtpradiofailalarm_element_clone,
|
||||
|
@ -67,6 +67,7 @@ static void capwap_80211_wtpradioinformation_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211_wtpradioinformation_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_80211_wtpradioinformation_element_create,
|
||||
.parse = capwap_80211_wtpradioinformation_element_parsing,
|
||||
.clone = capwap_80211_wtpradioinformation_element_clone,
|
||||
|
@ -85,6 +85,7 @@ capwap_80211n_radioconf_element_free(void* data)
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211n_radioconf_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211n_radioconf_element_create,
|
||||
.parse = capwap_80211n_radioconf_element_parsing,
|
||||
.clone = capwap_80211n_radioconf_element_clone,
|
||||
|
@ -95,6 +95,7 @@ capwap_80211n_station_info_element_free(void* data)
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_80211n_station_info_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_80211n_station_info_element_create,
|
||||
.parse = capwap_80211n_station_info_element_parsing,
|
||||
.clone = capwap_80211n_station_info_element_clone,
|
||||
|
@ -199,6 +199,7 @@ static void* capwap_acdescriptor_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_acdescriptor_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_acdescriptor_element_create,
|
||||
.parse = capwap_acdescriptor_element_parsing,
|
||||
.clone = capwap_acdescriptor_element_clone,
|
||||
|
@ -83,6 +83,7 @@ static void capwap_acipv4list_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_acipv4list_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_acipv4list_element_create,
|
||||
.parse = capwap_acipv4list_element_parsing,
|
||||
.clone = capwap_acipv4list_element_clone,
|
||||
|
@ -89,6 +89,7 @@ static void capwap_acipv6list_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_acipv6list_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_acipv6list_element_create,
|
||||
.parse = capwap_acipv6list_element_parsing,
|
||||
.clone = capwap_acipv6list_element_clone,
|
||||
|
@ -77,6 +77,7 @@ static void capwap_acname_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_acname_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_acname_element_create,
|
||||
.parse = capwap_acname_element_parsing,
|
||||
.clone = capwap_acname_element_clone,
|
||||
|
@ -78,6 +78,7 @@ static void capwap_acnamepriority_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_acnamepriority_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_acnamepriority_element_create,
|
||||
.parse = capwap_acnamepriority_element_parsing,
|
||||
.clone = capwap_acnamepriority_element_clone,
|
||||
|
@ -60,6 +60,7 @@ static void capwap_actimestamp_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_actimestamp_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_actimestamp_element_create,
|
||||
.parse = capwap_actimestamp_element_parsing,
|
||||
.clone = capwap_actimestamp_element_clone,
|
||||
|
@ -103,6 +103,7 @@ static void* capwap_addmacacl_element_parsing(capwap_message_elements_handle han
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_addmacacl_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_addmacacl_element_create,
|
||||
.parse = capwap_addmacacl_element_parsing,
|
||||
.clone = capwap_addmacacl_element_clone,
|
||||
|
@ -127,6 +127,7 @@ static void* capwap_addstation_element_parsing(capwap_message_elements_handle ha
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_addstation_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_addstation_element_create,
|
||||
.parse = capwap_addstation_element_parsing,
|
||||
.clone = capwap_addstation_element_clone,
|
||||
|
@ -64,6 +64,7 @@ static void capwap_controlipv4_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_controlipv4_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_controlipv4_element_create,
|
||||
.parse = capwap_controlipv4_element_parsing,
|
||||
.clone = capwap_controlipv4_element_clone,
|
||||
|
@ -70,6 +70,7 @@ static void capwap_controlipv6_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_controlipv6_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_controlipv6_element_create,
|
||||
.parse = capwap_controlipv6_element_parsing,
|
||||
.clone = capwap_controlipv6_element_clone,
|
||||
|
@ -106,6 +106,7 @@ static void* capwap_datatransferdata_element_parsing(capwap_message_elements_han
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_datatransferdata_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_datatransferdata_element_create,
|
||||
.parse = capwap_datatransferdata_element_parsing,
|
||||
.clone = capwap_datatransferdata_element_clone,
|
||||
|
@ -66,6 +66,7 @@ static void* capwap_datatransfermode_element_parsing(capwap_message_elements_han
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_datatransfermode_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_datatransfermode_element_create,
|
||||
.parse = capwap_datatransfermode_element_parsing,
|
||||
.clone = capwap_datatransfermode_element_clone,
|
||||
|
@ -110,6 +110,7 @@ static void* capwap_decrypterrorreport_element_parsing(capwap_message_elements_h
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_decrypterrorreport_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_decrypterrorreport_element_create,
|
||||
.parse = capwap_decrypterrorreport_element_parsing,
|
||||
.clone = capwap_decrypterrorreport_element_clone,
|
||||
|
@ -69,6 +69,7 @@ static void* capwap_decrypterrorreportperiod_element_parsing(capwap_message_elem
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_decrypterrorreportperiod_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_decrypterrorreportperiod_element_create,
|
||||
.parse = capwap_decrypterrorreportperiod_element_parsing,
|
||||
.clone = capwap_decrypterrorreportperiod_element_clone,
|
||||
|
@ -103,6 +103,7 @@ static void* capwap_deletemacacl_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_deletemacacl_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_deletemacacl_element_create,
|
||||
.parse = capwap_deletemacacl_element_parsing,
|
||||
.clone = capwap_deletemacacl_element_clone,
|
||||
|
@ -97,6 +97,7 @@ static void* capwap_deletestation_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_deletestation_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_deletestation_element_create,
|
||||
.parse = capwap_deletestation_element_parsing,
|
||||
.clone = capwap_deletestation_element_clone,
|
||||
|
@ -70,6 +70,7 @@ static void* capwap_discoverytype_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_discoverytype_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_discoverytype_element_create,
|
||||
.parse = capwap_discoverytype_element_parsing,
|
||||
.clone = capwap_discoverytype_element_clone,
|
||||
|
@ -101,6 +101,7 @@ static void* capwap_duplicateipv4_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_duplicateipv4_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_duplicateipv4_element_create,
|
||||
.parse = capwap_duplicateipv4_element_parsing,
|
||||
.clone = capwap_duplicateipv4_element_clone,
|
||||
|
@ -107,6 +107,7 @@ static void* capwap_duplicateipv6_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_duplicateipv6_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_duplicateipv6_element_create,
|
||||
.parse = capwap_duplicateipv6_element_parsing,
|
||||
.clone = capwap_duplicateipv6_element_clone,
|
||||
|
@ -67,6 +67,7 @@ static void* capwap_ecnsupport_element_parsing(capwap_message_elements_handle ha
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_ecnsupport_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_ecnsupport_element_create,
|
||||
.parse = capwap_ecnsupport_element_parsing,
|
||||
.clone = capwap_ecnsupport_element_clone,
|
||||
|
@ -59,6 +59,7 @@ static void capwap_idletimeout_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_idletimeout_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_idletimeout_element_create,
|
||||
.parse = capwap_idletimeout_element_parsing,
|
||||
.clone = capwap_idletimeout_element_clone,
|
||||
|
@ -105,6 +105,7 @@ static void* capwap_imagedata_element_parsing(capwap_message_elements_handle han
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_imagedata_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_imagedata_element_create,
|
||||
.parse = capwap_imagedata_element_parsing,
|
||||
.clone = capwap_imagedata_element_clone,
|
||||
|
@ -88,6 +88,7 @@ static void* capwap_imageidentifier_element_parsing(capwap_message_elements_hand
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_imageidentifier_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_imageidentifier_element_create,
|
||||
.parse = capwap_imageidentifier_element_parsing,
|
||||
.clone = capwap_imageidentifier_element_clone,
|
||||
|
@ -69,6 +69,7 @@ static void* capwap_imageinfo_element_parsing(capwap_message_elements_handle han
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_imageinfo_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_imageinfo_element_create,
|
||||
.parse = capwap_imageinfo_element_parsing,
|
||||
.clone = capwap_imageinfo_element_clone,
|
||||
|
@ -48,6 +48,7 @@ static void capwap_initdownload_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_initdownload_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_initdownload_element_create,
|
||||
.parse = capwap_initdownload_element_parsing,
|
||||
.clone = capwap_initdownload_element_clone,
|
||||
|
@ -60,6 +60,7 @@ static void capwap_localipv4_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_localipv4_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_localipv4_element_create,
|
||||
.parse = capwap_localipv4_element_parsing,
|
||||
.clone = capwap_localipv4_element_clone,
|
||||
|
@ -65,6 +65,7 @@ static void capwap_localipv6_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_localipv6_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_localipv6_element_create,
|
||||
.parse = capwap_localipv6_element_parsing,
|
||||
.clone = capwap_localipv6_element_clone,
|
||||
|
@ -78,6 +78,7 @@ static void* capwap_location_element_parsing(capwap_message_elements_handle hand
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_location_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_location_element_create,
|
||||
.parse = capwap_location_element_parsing,
|
||||
.clone = capwap_location_element_clone,
|
||||
|
@ -60,6 +60,7 @@ static void capwap_maximumlength_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_maximumlength_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_maximumlength_element_create,
|
||||
.parse = capwap_maximumlength_element_parsing,
|
||||
.clone = capwap_maximumlength_element_clone,
|
||||
|
@ -68,6 +68,7 @@ static void capwap_mtudiscovery_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_mtudiscovery_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_mtudiscovery_element_create,
|
||||
.parse = capwap_mtudiscovery_element_parsing,
|
||||
.clone = capwap_mtudiscovery_element_clone,
|
||||
|
@ -74,6 +74,7 @@ static void* capwap_radioadmstate_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_radioadmstate_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_radioadmstate_element_create,
|
||||
.parse = capwap_radioadmstate_element_parsing,
|
||||
.clone = capwap_radioadmstate_element_clone,
|
||||
|
@ -85,6 +85,7 @@ static void* capwap_radiooprstate_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_radiooprstate_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_radiooprstate_element_create,
|
||||
.parse = capwap_radiooprstate_element_parsing,
|
||||
.clone = capwap_radiooprstate_element_clone,
|
||||
|
@ -66,6 +66,7 @@ static void* capwap_resultcode_element_parsing(capwap_message_elements_handle ha
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_resultcode_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_resultcode_element_create,
|
||||
.parse = capwap_resultcode_element_parsing,
|
||||
.clone = capwap_resultcode_element_clone,
|
||||
|
@ -105,6 +105,7 @@ static void* capwap_returnedmessage_element_parsing(capwap_message_elements_hand
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_returnedmessage_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_returnedmessage_element_create,
|
||||
.parse = capwap_returnedmessage_element_parsing,
|
||||
.clone = capwap_returnedmessage_element_clone,
|
||||
|
@ -92,6 +92,7 @@ static void capwap_sessionid_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_sessionid_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_sessionid_element_create,
|
||||
.parse = capwap_sessionid_element_parsing,
|
||||
.clone = capwap_sessionid_element_clone,
|
||||
|
@ -60,6 +60,7 @@ static void capwap_statisticstimer_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_statisticstimer_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_statisticstimer_element_create,
|
||||
.parse = capwap_statisticstimer_element_parsing,
|
||||
.clone = capwap_statisticstimer_element_clone,
|
||||
|
@ -62,6 +62,7 @@ static void capwap_timers_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_timers_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_timers_element_create,
|
||||
.parse = capwap_timers_element_parsing,
|
||||
.clone = capwap_timers_element_clone,
|
||||
|
@ -66,6 +66,7 @@ static void* capwap_transport_element_parsing(capwap_message_elements_handle han
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_transport_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_transport_element_create,
|
||||
.parse = capwap_transport_element_parsing,
|
||||
.clone = capwap_transport_element_clone,
|
||||
|
@ -125,6 +125,7 @@ capwap_vendorpayload_element_parsing(capwap_message_elements_handle handle,
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_vendorpayload_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_ARRAY,
|
||||
.create = capwap_vendorpayload_element_create,
|
||||
.parse = capwap_vendorpayload_element_parsing,
|
||||
.clone = capwap_vendorpayload_element_clone,
|
||||
|
@ -151,6 +151,7 @@ static void* capwap_wtpboarddata_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_wtpboarddata_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_wtpboarddata_element_create,
|
||||
.parse = capwap_wtpboarddata_element_parsing,
|
||||
.clone = capwap_wtpboarddata_element_clone,
|
||||
|
@ -229,6 +229,7 @@ static void* capwap_wtpdescriptor_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_wtpdescriptor_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_wtpdescriptor_element_create,
|
||||
.parse = capwap_wtpdescriptor_element_parsing,
|
||||
.clone = capwap_wtpdescriptor_element_clone,
|
||||
|
@ -66,6 +66,7 @@ static void* capwap_wtpfallback_element_parsing(capwap_message_elements_handle h
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_wtpfallback_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_wtpfallback_element_create,
|
||||
.parse = capwap_wtpfallback_element_parsing,
|
||||
.clone = capwap_wtpfallback_element_clone,
|
||||
|
@ -66,6 +66,7 @@ static void* capwap_wtpframetunnelmode_element_parsing(capwap_message_elements_h
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_wtpframetunnelmode_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_wtpframetunnelmode_element_create,
|
||||
.parse = capwap_wtpframetunnelmode_element_parsing,
|
||||
.clone = capwap_wtpframetunnelmode_element_clone,
|
||||
|
@ -66,6 +66,7 @@ static void* capwap_wtpmactype_element_parsing(capwap_message_elements_handle ha
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_wtpmactype_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_wtpmactype_element_create,
|
||||
.parse = capwap_wtpmactype_element_parsing,
|
||||
.clone = capwap_wtpmactype_element_clone,
|
||||
|
@ -80,6 +80,7 @@ static void capwap_wtpname_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_wtpname_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_wtpname_element_create,
|
||||
.parse = capwap_wtpname_element_parsing,
|
||||
.clone = capwap_wtpname_element_clone,
|
||||
|
@ -95,6 +95,7 @@ static void* capwap_wtpradiostat_element_parsing(capwap_message_elements_handle
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_wtpradiostat_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_wtpradiostat_element_create,
|
||||
.parse = capwap_wtpradiostat_element_parsing,
|
||||
.clone = capwap_wtpradiostat_element_clone,
|
||||
|
@ -80,6 +80,7 @@ static void capwap_wtprebootstat_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_wtprebootstat_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_wtprebootstat_element_create,
|
||||
.parse = capwap_wtprebootstat_element_parsing,
|
||||
.clone = capwap_wtprebootstat_element_clone,
|
||||
|
@ -72,6 +72,7 @@ static void capwap_wtpstaticipaddress_element_free(void* data) {
|
||||
|
||||
/* */
|
||||
struct capwap_message_elements_ops capwap_element_wtpstaticipaddress_ops = {
|
||||
.category = CAPWAP_MESSAGE_ELEMENT_SINGLE,
|
||||
.create = capwap_wtpstaticipaddress_element_create,
|
||||
.parse = capwap_wtpstaticipaddress_element_parsing,
|
||||
.clone = capwap_wtpstaticipaddress_element_clone,
|
||||
|
Loading…
Reference in New Issue
Block a user