Wireshark mailing list archives
Problem with ENC_BCD_DIGITS_0_9 odd/even
From: Anders Broman via Wireshark-dev <wireshark-dev () wireshark org>
Date: Wed, 9 Dec 2020 15:43:30 +0000
Hi, There is a problem with the BCD encoded numbers as they may be padded and unfortunately with Zero. "Encoding scheme: BCD. Note: Filler H'0 (last digit) is used in case of the odd number of digits." In order to present this properly It would be good to be able to pass an odd/even indicator, what would be the preferred bits to use? #define ENC_BCD_ODD 0x10000000 #define ENC_BCD_EVEN 0x20000000 If(odd){ proto_tree_add_item(subtree, hf_cs1plus_gen_digits, parameter_tvb, poffset, -1, ENC_KEYPAD_BC_TBCD| ENC_BCD_ODD ); else proto_tree_add_item(subtree, hf_cs1plus_gen_digits, parameter_tvb, poffset, -1, ENC_KEYPAD_BC_TBCD| ENC_BCD_EVEN); Or some other solution? Best regards Anders
Attachment:
smime.p7s
Description:
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Problem with ENC_BCD_DIGITS_0_9 odd/even Anders Broman via Wireshark-dev (Dec 09)
- Re: Problem with ENC_BCD_DIGITS_0_9 odd/even Jaap Keuter (Dec 09)