diff --git a/changelog.txt b/changelog.txt index fc815952e..a77b903b0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,8 +1,10 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- +== 04/28/2013 == +PiB: Implement CRC16 using CRC32. == 04/27/2013 == -Pixel Bounds: Verify OP_Ack size & fix crash in BasePacket::build_raw_header_dump due to uninitialised timestamp. +PiB: Verify OP_Ack size & fix crash in BasePacket::build_raw_header_dump due to uninitialised timestamp. Derision: Verify minimum size of OP_Packet, OP_Fragment and OP_OutOfOrderAck. == 04/24/2013 == diff --git a/common/CRC16.cpp b/common/CRC16.cpp index 8f13b6f85..d5a8942d5 100644 --- a/common/CRC16.cpp +++ b/common/CRC16.cpp @@ -1,6 +1,6 @@ #include "crc32.h" -unsigned long CRC16(const unsigned char *buf, int size, int key) +uint16 CRC16(const unsigned char *buf, int size, int key) { // This is computed as the lowest 16 bits of an Ethernet CRC32 checksum // where the key is prepended to the data in little endian order. diff --git a/common/CRC16.h b/common/CRC16.h index df1768f00..04de64e1e 100644 --- a/common/CRC16.h +++ b/common/CRC16.h @@ -1,6 +1,7 @@ #ifndef _CRC16_H #define _CRC16_H +#include "types.h" -unsigned long CRC16(const unsigned char *buf, int size, int key); +uint16 CRC16(const unsigned char *buf, int size, int key); #endif