2016-02-27 05:33:57 +01:00
|
|
|
/*
|
|
|
|
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/>.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2016-03-03 20:46:20 +01:00
|
|
|
#include "cw/cw.h"
|
2016-03-15 00:31:31 +01:00
|
|
|
#include "cw/vendors.h"
|
|
|
|
#include "cw/capwap_items.h"
|
2016-02-27 05:33:57 +01:00
|
|
|
|
|
|
|
|
2016-02-27 10:47:37 +01:00
|
|
|
int cisco_in_wtp_descriptor(struct conn *conn, struct cw_action_in *a, uint8_t * data,
|
2016-02-27 05:33:57 +01:00
|
|
|
int len, struct sockaddr *from)
|
|
|
|
{
|
|
|
|
|
2016-03-15 00:31:31 +01:00
|
|
|
static struct cw_descriptor_subelem_def allowed[] = {
|
|
|
|
{CW_VENDOR_ID_CISCO,CW_SUBELEM_WTP_HARDWARE_VERSION, CW_ITEM_WTP_HARDWARE_VERSION, 1024,0},
|
|
|
|
{CW_VENDOR_ID_CISCO,CW_SUBELEM_WTP_SOFTWARE_VERSION, CW_ITEM_WTP_SOFTWARE_VERSION, 1024.0},
|
|
|
|
{CW_VENDOR_ID_CISCO,CW_SUBELEM_WTP_BOOTLOADER_VERSION, CW_ITEM_WTP_BOOTLOADER_VERSION, 1024.0},
|
|
|
|
{CW_VENDOR_ID_CISCO,CW_SUBELEM_WTP_OTHERSOFTWARE_VERSION, "other", 1024.0},
|
|
|
|
{0,0, NULL, 0,0}
|
|
|
|
};
|
2016-02-27 05:33:57 +01:00
|
|
|
|
2016-03-15 00:31:31 +01:00
|
|
|
|
|
|
|
return cw_read_wtp_descriptor_7(conn->incomming, conn, a, data, len, allowed);
|
2016-02-27 05:33:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|