diff options
Diffstat (limited to 'epan/crc16-tvb.h')
-rw-r--r-- | epan/crc16-tvb.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/crc16-tvb.h b/epan/crc16-tvb.h index f85ae8fc8c..eee19f7597 100644 --- a/epan/crc16-tvb.h +++ b/epan/crc16-tvb.h @@ -115,6 +115,18 @@ WS_DLL_PUBLIC guint16 crc16_plain_tvb_offset_seed(tvbuff_t *tvb, guint offset, g @return The CRC16 checksum. */ WS_DLL_PUBLIC guint16 crc16_0x9949_tvb_offset_seed(tvbuff_t *tvb, guint offset, guint len, guint16 seed); +/** Compute CRC16 checksum of a tv buffer using the parameters + * Width = 16 bits + * Poly = 0x3D65 + * Reflection = true + * Algorithm = table-driven + @param tvb The tv buffer containing the data. + @param offset The offset into the tv buffer. + @param len The number of bytes to include in the computation. + @param seed The seed to use. + @return The CRC16 checksum. */ +WS_DLL_PUBLIC guint16 crc16_0x3D65_tvb_offset_seed(tvbuff_t *tvb, guint offset, guint len, guint16 seed); + #ifdef __cplusplus } #endif /* __cplusplus */ |