Wireshark-dev: Re: [Wireshark-dev] r45266: proto_tree_add_uint_format_value(..., value, ..., va
From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Thu, 11 Oct 2012 07:26:11 +0200
Le 11/10/2012 05:10,
mmann78@xxxxxxxxxxxx a écrit :
Hi, right now I'm displaying the value like what we would do with a value_string array: computed value and raw value in parenthesis. It is the best trade-off I could think to so far: oct = tvb_get_guint8(tvb, curr_offset) & 0x0f; proto_tree_add_uint_format_value(tf_tree, hf_gsm_a_sm_tft_pkt_flt_id, tvb, curr_offset, 1, oct, "%d (%d)", oct+1, oct); Any other idea is welcome. Regards, Pascal.
|
- Follow-Ups:
- References:
- Prev by Date: Re: [Wireshark-dev] r45266: proto_tree_add_uint_format_value(..., value, ..., value + 1)
- Next by Date: Re: [Wireshark-dev] [Wireshark-commits] rev 45462: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-sctp.c
- Previous by thread: Re: [Wireshark-dev] r45266: proto_tree_add_uint_format_value(..., value, ..., value + 1)
- Next by thread: Re: [Wireshark-dev] r45266: proto_tree_add_uint_format_value(..., value, ..., value + 1)
- Index(es):
- Get Wireshark
- Download
- Code of Conduct