Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
ENC_BCD_DIGITS_0_9 and other encodings for packed BCD values are
hard-wired to little endian for multi-byte fields.
Some dissectors like zvt work around this by calling tvb_get_bcd_string
and proto_tree_add_string. The mdb protocol is also using multi-byte
packed BCD fields in big-endian order.
This patch allows setting ENC_BIG_ENDIAN or ENC_LITTLE_ENDIAN in
combination with the BCD encodings. Unfortunately, we have to default to
big endian and fix up all existing users.
|
|
|
|
Part 1/2 as the commits were too big for CI.
Largely find/replace, with a few manual tweaks. Then regenerate the asn1
dissector sources and make sure everything still builds. There are a
handful of cases I skipped as too complex, but this covers most of the
asn1 dissectors.
|
|
Stop including glib.h in dissectors, this will come in implicitly with
packet.h including proto.h, an essential include file for dissectors.
While at it, config.h is no longer conditional and stdio.h is usually
not needed either. Some other cleanups too.
Change-Id: I60c12f16d7ef1e6398509293031ffed7460d2c61
Reviewed-on: https://code.wireshark.org/review/36969
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
|
|
Add some ENC_ values for various flavors of packed BCD, and use that
instead of explicitly calling tvb_bcd_dig_to_wmem_packet_str() and
adding the result.
Change-Id: I07511d9d09c9231b610c121cd6ffb3b16fb017a9
Reviewed-on: https://code.wireshark.org/review/36952
Reviewed-by: Guy Harris <gharris@sonic.net>
|
|
Change-Id: Ib38960def1bdefde64b82ba0848c5e13a51189c7
Reviewed-on: https://code.wireshark.org/review/30712
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
|
|
Bug: 15236
Change-Id: I3a04394bf9069f63b90f7a3d60e801a846840839
Reviewed-on: https://code.wireshark.org/review/30515
Reviewed-by: Anders Broman <a.broman58@gmail.com>
|