aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/crc16.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-06-26 12:11:08 +0000
committerMichael Mann <mmann78@netscape.net>2013-06-26 12:11:08 +0000
commit6e1f213fcac6ca3361fd35eac0dd627b8bd0619b (patch)
treef86ed37a7c8392051181bfea7571225cf4c831a9 /wsutil/crc16.h
parent500d3993934d988fa5231333dd8c484513a81473 (diff)
openSAFETY: CRC Maintenance, new CRC, new expert interface implemented. Bug 8847 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8847)
From Roland Knall svn path=/trunk/; revision=50166
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 3529a1af6c..351b049e9f 100644
--- a/wsutil/crc16.h
+++ b/wsutil/crc16.h
@@ -72,6 +72,15 @@ WS_DLL_PUBLIC guint16 crc16_ccitt_seed(const guint8 *buf, guint len, guint16 see
*/
WS_DLL_PUBLIC guint16 crc16_0x5935(const guint8 *buf, guint32 len, guint16 seed);
+/** Calculates a CRC16 checksum for the given buffer with the polynom
+ * 0x755B using a precompiled CRC table
+ * @param pBuffer 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_0x755B(const guint8 *buf, guint32 len, guint16 seed);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */