diff options
author | Ross <whim42+github@gmail.com> | 2019-01-03 14:19:59 -0800 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-01-04 06:04:07 +0000 |
commit | 29bfeccc8db0a880ad3aff282389298852c02323 (patch) | |
tree | 615f4ace49432bbf31630c767d960604e513543d /debian/libwsutil0.symbols | |
parent | 9aa63d2406dc8248f6220e62bf0359ade597c309 (diff) |
CRC6: Fixed CRC lookup table and functions
* Generated code and 256-element lookup table with pycrc
* Combined 2 crc6 functions which both have same poly 0x6f and lookup table
* Using the example file from the bug report,
$ tshark -r ~/Downloads/M1_header_crc.pcapng -V | grep "Calculated CRC"
1101 00.. = Header CRC: 0x34 [Calculated CRC 0x34]
Header and Calculated CRC are now both 0x34 (correct value)
* pycrc settings for generation:
$ python pycrc.py --reflect-in False \
--reflect-out False \
--xor-in 0 \
--xor-out 0 \
--algorithm table-driven
--width 6 \
--poly 0x2f
* To manually check 3GPP protocol header CRCs, use above command with flag
--check-hexstring=<HEADER HEX>
Bug: 14875
Change-Id: I283f52fcae10b2f92f107df6988629d49d692428
Reviewed-on: https://code.wireshark.org/review/31356
Reviewed-by: Ross Jacobs <rossbjacobs@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'debian/libwsutil0.symbols')
-rw-r--r-- | debian/libwsutil0.symbols | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/debian/libwsutil0.symbols b/debian/libwsutil0.symbols index 89062b29b8..6b777bb635 100644 --- a/debian/libwsutil0.symbols +++ b/debian/libwsutil0.symbols @@ -31,7 +31,7 @@ libwsutil.so.0 libwsutil0 #MINVER# crc32c_calculate@Base 1.10.0 crc32c_calculate_no_swap@Base 1.10.0 crc32c_table_lookup@Base 1.10.0 - crc6_compute@Base 1.12.0~rc1 + crc6_0X6F@Base 1.12.0~rc1 crc7update@Base 1.10.0 crc8_0x2F@Base 1.10.0 crc8_0x37@Base 2.3.0 @@ -165,7 +165,6 @@ libwsutil.so.0 libwsutil0 #MINVER# ulaw2linear@Base 1.12.0~rc1 update_adler32@Base 1.12.0~rc1 update_crc10_by_bytes@Base 1.10.0 - update_crc6_by_bytes@Base 1.10.0 ws_add_crash_info@Base 1.10.0 ws_ascii_strnatcasecmp@Base 1.99.1 ws_ascii_strnatcmp@Base 1.99.1 |