diff options
author | Michael Mann <mmann78@netscape.net> | 2013-10-22 23:30:26 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-10-22 23:30:26 +0000 |
commit | cbd3194bcf87f2e5146343170b4a595ace599ff1 (patch) | |
tree | 2f2c97697f15284513824402b4dad08c413ab0eb /epan/crc32-tvb.h | |
parent | 02a8e72b436834cc097b75ad63be9a1bf4ea1a99 (diff) |
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 'epan/crc32-tvb.h')
-rw-r--r-- | epan/crc32-tvb.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/epan/crc32-tvb.h b/epan/crc32-tvb.h index 7496f8b34a..c08919486a 100644 --- a/epan/crc32-tvb.h +++ b/epan/crc32-tvb.h @@ -99,6 +99,20 @@ WS_DLL_PUBLIC guint32 crc32_mpeg2_tvb_seed(tvbuff_t *tvb, guint len, guint32 see @return The CRC32 MPEG-2 checksum (using the given seed). */ WS_DLL_PUBLIC guint32 crc32_mpeg2_tvb_offset_seed(tvbuff_t *tvb, guint offset, guint len, guint32 seed); + +/** Compute CRC32 checksum of a tv buffer using the parameters + * Width = 32 bits + * Poly = 0x0AA725CF + * 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 CRC32 checksum. */ +WS_DLL_PUBLIC guint32 crc32_0x0AA725CF_tvb_offset_seed(tvbuff_t *tvb, + guint offset, guint len, guint32 seed); + #ifdef __cplusplus } #endif /* __cplusplus */ |