Initial commit.

FossilOrigin-Name: bd82841391d7e2e75f8b4af308b0b9bd32a1b095316f01856b1a2d4a7eed75c6
This commit is contained in:
7u83@mail.ru 2015-04-04 21:50:18 +00:00
parent b9cbc80e91
commit fbd0c126fb

View File

@ -1,3 +1,21 @@
/*
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 <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -67,11 +85,10 @@ static void readsubelems_wtp_board_data(cw_itemstore_t itemstore, uint8_t * msge
/** /**
* Parse a WTP Board Data messag element an put results to itemstore. * Parse a WTP Board Data messag element and put results to itemstore.
*/ */
int cw_in_wtp_board_data(struct conn *conn, struct cw_action *a, uint8_t * data, int len) int cw_in_wtp_board_data(struct conn *conn, struct cw_action_in *a, uint8_t * data, int len)
{ {
printf("Jau Board Data\n");
if (len < 4) { if (len < 4) {
cw_dbg(DBG_ELEM_ERR, cw_dbg(DBG_ELEM_ERR,
"Discarding WTP_BOARD_DATA msgelem, wrong size, type=%d, len=%d", a->elem_id, "Discarding WTP_BOARD_DATA msgelem, wrong size, type=%d, len=%d", a->elem_id,