Hi Iam developing custom dissector using wieshark 1.113 , iam trying for CRC tree uusing crc16_ccitt_tvb() (my polynominal is (x16 + x12 + x5 + 1))and i can able to see results correctly. But its showing reverse (eg. my 2 byte CRC is 52 AC my wireshark shows as CRC 0X52AC [CORRECT] but actually i suppose to get CRC 0XAC52 [CORRECT] here below my code.
|
Just a wild guess: Please try ENC_BIG_ENDIAN instead of ENC_LITTLE_ENDIAN. Regards |
Also, all arguments to Hi Thanks for the reply Found the issue from checksum = tvb_get_ntohs(tvb, checksum_offset); This FETCH value in BIG Endian I hve used checksum = tvb_get_letohs(tvb, checksum_offset); Issue settled. Thanks!:)
(27 May '14, 21:02)
umar
|
@mrajsekar I've already fixed the formatting once, if you edit it again please use the "code" button to format code correctly (or use code tags around the code).