diff options
Diffstat (limited to 'asn1/atn-ulcs/packet-atn-ulcs-template.c')
-rw-r--r-- | asn1/atn-ulcs/packet-atn-ulcs-template.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/asn1/atn-ulcs/packet-atn-ulcs-template.c b/asn1/atn-ulcs/packet-atn-ulcs-template.c index 37322a3a0c..51e51d545c 100644 --- a/asn1/atn-ulcs/packet-atn-ulcs-template.c +++ b/asn1/atn-ulcs/packet-atn-ulcs-template.c @@ -293,6 +293,7 @@ const value_string atn_ses_type[] = #define ATN_PRES_PROTO "ICAO Doc9705 ULCS Presentation (ISO 8822/8823-1:1994)" static int hf_atn_pres_err = -1; +static int hf_atn_pres_pdu_type = -1; static gint ett_atn_pres = -1; #define ATN_SES_PRES_MASK 0xf803 @@ -676,13 +677,11 @@ dissect_atn_ulcs( /* need session context to identify PPDU type */ /* note: */ - /* it is *unfeasible* to use proto_tree_add_item here: */ - /* presentation type is always the same constant but its type */ - /* is implicitly determined by preceding session context */ - proto_tree_add_text(atn_ulcs_tree, + proto_tree_add_uint_format(atn_ulcs_tree, hf_atn_pres_pdu_type, tvb, offset, 1, + value_ses_pres, "%s (0x%02x)", val_to_str( value_ses_pres & ATN_SES_PRES_MASK , atn_pres_vals, "?"), value_pres); @@ -839,6 +838,14 @@ void proto_register_atn_ulcs (void) PRES_CPR_ER_MASK, NULL, HFILL}}, + { &hf_atn_pres_pdu_type, + { "PDU type", "atn-ulcs.pres.pdu_type", + FT_UINT8, + BASE_HEX, + NULL, + ATN_SES_PRES_MASK, + NULL, + HFILL}}, }; static gint *ett[] = { |