diff options
author | Martin Mathieson <martin.mathieson@keysight.com> | 2023-04-25 10:51:19 +0100 |
---|---|---|
committer | Martin Mathieson <martin.mathieson@keysight.com> | 2023-04-25 10:51:19 +0100 |
commit | 99b88e937ff6d488122ac5464f14213b6fbb8487 (patch) | |
tree | 94a946432c79d517a0f26110f129932050870a64 /epan/dissectors/packet-sstp.c | |
parent | 0cec05a14c7e0ad6fdb381f5ebf6c1c722a243fc (diff) |
Last batch of val_to_str() fussing
Diffstat (limited to 'epan/dissectors/packet-sstp.c')
-rw-r--r-- | epan/dissectors/packet-sstp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-sstp.c b/epan/dissectors/packet-sstp.c index 230d8c8be6..a4efe98155 100644 --- a/epan/dissectors/packet-sstp.c +++ b/epan/dissectors/packet-sstp.c @@ -215,7 +215,7 @@ dissect_sstp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data if (sstp_control_flag) { guint16 sstp_messagetype = tvb_get_guint16(tvb, SSTP_OFFSET_MSGTYPE, ENC_BIG_ENDIAN); - col_append_fstr(pinfo->cinfo, COL_INFO, "Type: CONTROL, %s; ", val_to_str(sstp_messagetype, sstp_messagetypes, "Unknown Messagetype")); + col_append_fstr(pinfo->cinfo, COL_INFO, "Type: CONTROL, %s; ", val_to_str_const(sstp_messagetype, sstp_messagetypes, "Unknown Messagetype")); proto_tree_add_item(sstp_tree, hf_sstp_messagetype, tvb, SSTP_OFFSET_MSGTYPE, SSTP_FSIZE_MSGTYPE, ENC_BIG_ENDIAN); proto_tree_add_item(sstp_tree, hf_sstp_numattrib, tvb, SSTP_OFFSET_NUMATTRIB, SSTP_FSIZE_NUMATTRIB, ENC_BIG_ENDIAN); sstp_numattrib = tvb_get_ntohs(tvb, SSTP_OFFSET_NUMATTRIB); @@ -231,7 +231,7 @@ dissect_sstp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data /* read attribute id and create subtree for attribute */ attrib_id = tvb_get_guint8(tvb, offset+1); sstp_tree_attribute = proto_tree_add_subtree_format(sstp_tree, tvb, offset, SSTP_FSIZE_ATTRIB_RESERVED, ett_sstp_attribute, - NULL, "Attribute %s", val_to_str(attrib_id, sstp_attributes, "Unknown Attribute")); + NULL, "Attribute %s", val_to_str_const(attrib_id, sstp_attributes, "Unknown Attribute")); proto_tree_add_item(sstp_tree_attribute, hf_sstp_attrib_reserved, tvb, offset, SSTP_FSIZE_ATTRIB_RESERVED, ENC_BIG_ENDIAN); offset++; proto_tree_add_item(sstp_tree_attribute, hf_sstp_attrib_id, tvb, offset, SSTP_FSIZE_ATTRIB_ID, ENC_BIG_ENDIAN); |