diff options
author | Tomasz Moń <desowin@gmail.com> | 2019-07-19 17:43:20 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-07-25 08:58:13 +0000 |
commit | dd5f2bd054710910788656e068ad8853089c84c5 (patch) | |
tree | 310b4d2361be39e018cb0e05d534dac3fad3cc51 /epan/crc16-tvb.h | |
parent | 53fdec477da233d7161990616f174deedad524b8 (diff) |
USBLL: Verify DATA packets CRC-16
Ping-Bug: 15908
Change-Id: Idda280545665184aca40c694ea6d639c9317307a
Reviewed-on: https://code.wireshark.org/review/34016
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/crc16-tvb.h')
-rw-r--r-- | epan/crc16-tvb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/crc16-tvb.h b/epan/crc16-tvb.h index 203ca23652..454cfbc992 100644 --- a/epan/crc16-tvb.h +++ b/epan/crc16-tvb.h @@ -72,6 +72,13 @@ WS_DLL_PUBLIC guint16 crc16_ccitt_tvb_offset_seed(tvbuff_t *tvb, guint offset, @return The calculated CRC_A. */ WS_DLL_PUBLIC guint16 crc16_iso14443a_tvb_offset(tvbuff_t *tvb, guint offset, guint len); +/** Compute the 16bit CRC value of a tv buffer as defined in USB Standard. + @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. + @return The calculated CRC. */ +WS_DLL_PUBLIC guint16 crc16_usb_tvb_offset(tvbuff_t *tvb, guint offset, guint len); + /** Compute the "plain" CRC16 checksum of a tv buffer using the following * parameters: * Width = 16 |