diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-01-08 12:49:46 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2024-04-08 11:52:42 +0200 |
commit | e19c6607187c743e78109776871861da5a3f1ee2 (patch) | |
tree | 89af3905ce68bd37806ecb642387a09afc6ef73e /epan/dissectors | |
parent | 3d181a3b47ad1bdb70655a0aca24dd3f3fc37c7a (diff) |
qcdiag: Use value_string_ext
Change-Id: I736d69cb524af2e8254d94b9ab15577f5b65646e
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-qcdiag.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/epan/dissectors/packet-qcdiag.c b/epan/dissectors/packet-qcdiag.c index 6342219551..5651a80c12 100644 --- a/epan/dissectors/packet-qcdiag.c +++ b/epan/dissectors/packet-qcdiag.c @@ -162,6 +162,8 @@ static const value_string qcdiag_cmds[] = { { 0, NULL } }; +static value_string_ext qcdiag_cmds_ext = VALUE_STRING_EXT_INIT(qcdiag_cmds); + static const value_string qcdiag_subsys[] = { { DIAG_SUBSYS_OEM, "OEM" }, { DIAG_SUBSYS_ZREX, "ZREX" }, @@ -268,6 +270,8 @@ static const value_string qcdiag_subsys[] = { { 0, NULL } }; +static value_string_ext qcdiag_subsys_ext = VALUE_STRING_EXT_INIT(qcdiag_subsys); + static int dissect_qcdiag_subsys(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { @@ -315,9 +319,9 @@ proto_register_qcdiag(void) { static hf_register_info hf[] = { { &hf_qcdiag_cmd, { "Command", "qcdiag.cmd", - FT_UINT8, BASE_HEX, VALS(qcdiag_cmds), 0, NULL, HFILL } }, + FT_UINT8, BASE_HEX|BASE_EXT_STRING, &qcdiag_cmds_ext, 0, NULL, HFILL } }, { &hf_qcdiag_subsys_id, { "Subsystem ID", "qcdiag.subsys_id", - FT_UINT8, BASE_DEC, VALS(qcdiag_subsys), 0, NULL, HFILL } }, + FT_UINT8, BASE_DEC|BASE_EXT_STRING, &qcdiag_subsys_ext, 0, NULL, HFILL } }, { &hf_qcdiag_subsys_cmd_code, { "Subsystem Command Code", "qcdiag.subsys_cmd_code", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL } }, }; |