From 36711c455eaad026f3f27008d5e1bb7c5ecdcd1d Mon Sep 17 00:00:00 2001
From: "7u83@mail.ru" <7u83@mail.ru@noemail.net>
Date: Sat, 16 Aug 2014 17:29:07 +0000
Subject: [PATCH] Initial commmit.
FossilOrigin-Name: 51d5f8238e7f1b2c8ce87ef8b5ac873afff6461f5ac68268e5eb440a76275d00
---
src/capwap/cwread_image_data_request.c | 74 +++++++++++++++++++++++++
src/capwap/cwsend_image_data_response.c | 34 ++++++++++++
2 files changed, 108 insertions(+)
create mode 100644 src/capwap/cwread_image_data_request.c
create mode 100644 src/capwap/cwsend_image_data_response.c
diff --git a/src/capwap/cwread_image_data_request.c b/src/capwap/cwread_image_data_request.c
new file mode 100644
index 00000000..b9eb8d86
--- /dev/null
+++ b/src/capwap/cwread_image_data_request.c
@@ -0,0 +1,74 @@
+/*
+ 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 .
+
+*/
+
+#include "capwap.h"
+#include "acinfo.h"
+
+#include "cw_log.h"
+#include "cw_util.h"
+
+#include // tube
+
+int cw_readelem_image_identifier(uint8_t **dst, int type,uint8_t *msgelem, int len)
+{
+ if (type != CWMSGELEM_IMAGE_IDENTIFIER)
+ return 0;
+
+ uint32_t vendor_id = ntohl(*((uint32_t*)msgelem));
+ printf("Vendor id %d\n",vendor_id);
+
+ int i;
+ for(i=0; i.
+
+*/
+
+#include "sock.h"
+#include "capwap.h"
+#include "cw_log.h"
+
+
+void cwsend_image_data_response(struct conn * conn,int seqnum, int rc)
+{
+ cw_dbg(DBG_CW_MSG,"Sending imag data response to %s, seq = %d",sock_addr2str(&conn->addr),seqnum);
+
+ struct cwmsg * cwmsg = &conn->swm;
+ cwmsg_init(cwmsg,conn->buffer,CWMSG_IMAGE_DATA_RESPONSE,seqnum,NULL);
+
+ cwmsg_addelem_result_code(cwmsg,rc);
+
+}