Working on Cisoc support.

FossilOrigin-Name: 3b605a558b58d0288e1ee3c60277c74967b120fcb500e3458b3b7c7d71903bae
This commit is contained in:
7u83@mail.ru
2015-03-23 06:48:27 +00:00
parent ccd226aeba
commit 69d5462211
49 changed files with 358 additions and 144 deletions

View File

@ -16,13 +16,20 @@
*/
/**
*@file
*@brief Implements lw_checksum.
*/
#include "lwapp.h"
/**
* Calculate the 16-bit checksum for LWAPP image data message
* elements with opcode 3 - also used by Cisco in CAPWAP
* @param d pointer to data to calulate the checksum for
* @param len length of data
* @return the calculated checksum.
*/
uint16_t lw_checksum(uint8_t * d, int len)
{
int32_t sum = 0;