summaryrefslogtreecommitdiff
path: root/wsutil/crc16.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-10-22 23:30:26 +0000
committerMichael Mann <mmann78@netscape.net>2013-10-22 23:30:26 +0000
commitcbd3194bcf87f2e5146343170b4a595ace599ff1 (patch)
tree2f2c97697f15284513824402b4dad08c413ab0eb /wsutil/crc16.h
parent02a8e72b436834cc097b75ad63be9a1bf4ea1a99 (diff)
downloadwireshark-cbd3194bcf87f2e5146343170b4a595ace599ff1.tar.gz
Add STANAG 5066 DTS CRC routines. Bug 9217 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9217)
STANAG 5066 DTS will follow when it passes review, just trying to make the patch more manageable. svn path=/trunk/; revision=52774
Diffstat (limited to 'wsutil/crc16.h')
-rw-r--r--wsutil/crc16.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wsutil/crc16.h b/wsutil/crc16.h
index 546f246dce..e947af7b17 100644
--- a/wsutil/crc16.h
+++ b/wsutil/crc16.h
@@ -81,6 +81,15 @@ WS_DLL_PUBLIC guint16 crc16_0x5935(const guint8 *buf, guint32 len, guint16 seed)
*/
WS_DLL_PUBLIC guint16 crc16_0x755B(const guint8 *buf, guint32 len, guint16 seed);
+/** Computes CRC16 checksum for the given data with the polynom 0x9949 using
+ * precompiled CRC table
+ * @param buf a pointer to a buffer of the given length
+ * @param len the length of the given buffer
+ * @param seed The seed to use.
+ * @return the CRC16 checksum for the buffer
+ */
+WS_DLL_PUBLIC guint16 crc16_0x9949_seed(const guint8 *buf, guint len, guint16 seed);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */