diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2012-07-29 19:48:22 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2012-07-29 19:48:22 +0000 |
commit | b94cd13e93548784fb064322ea3b418d6cbe05ba (patch) | |
tree | 847adab76786eb0618ec522bf778ecd2b8884389 /epan/dissectors/packet-dvb-s2-bb.c | |
parent | f0d8bf411e4b99ea59f5eaf058349ad0e57f7b47 (diff) |
Fix usage of range string and use extended value strings in a few places
svn path=/trunk/; revision=44115
Diffstat (limited to 'epan/dissectors/packet-dvb-s2-bb.c')
-rw-r--r-- | epan/dissectors/packet-dvb-s2-bb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-dvb-s2-bb.c b/epan/dissectors/packet-dvb-s2-bb.c index 9db6fc04cc..6a5f25396b 100644 --- a/epan/dissectors/packet-dvb-s2-bb.c +++ b/epan/dissectors/packet-dvb-s2-bb.c @@ -168,6 +168,7 @@ static const value_string modeadapt_modcods[] = { {31, "reserved"}, { 0, NULL} }; +static value_string_ext modeadapt_modcods_ext = VALUE_STRING_EXT_INIT(modeadapt_modcods); #define DVB_S2_MODEADAPT_PILOTS_MASK 0x20 static const true_false_string tfs_modeadapt_pilots = { @@ -442,6 +443,7 @@ static const value_string modeadapt_esno[] = { {255, ">30.750"}, { 0, NULL} }; +static value_string_ext modeadapt_esno_ext = VALUE_STRING_EXT_INIT(modeadapt_esno); /* fourth byte */ #define DVB_S2_MODEADAPT_OFFS_FNO 3 @@ -901,12 +903,12 @@ void proto_register_dvb_s2_modeadapt(void) }, {&hf_dvb_s2_modeadapt_acm_modcod, { "Modcod indicator", "dvb-s2_modeadapt.acmcmd.modcod", - FT_UINT8, BASE_DEC, VALS(modeadapt_modcods), DVB_S2_MODEADAPT_MODCODS_MASK, + FT_UINT8, BASE_DEC|BASE_EXT_STRING, &modeadapt_modcods_ext, DVB_S2_MODEADAPT_MODCODS_MASK, "Modcod", HFILL} }, {&hf_dvb_s2_modeadapt_cni, { "Carrier to Noise [dB]", "dvb-s2_modeadapt.cni", - FT_UINT8, BASE_DEC, VALS(modeadapt_esno), 0x0, + FT_UINT8, BASE_DEC|BASE_EXT_STRING, &modeadapt_esno_ext, 0x0, "CNI", HFILL} }, {&hf_dvb_s2_modeadapt_frameno, { @@ -1024,7 +1026,7 @@ void proto_register_dvb_s2_modeadapt(void) }, {&hf_dvb_s2_gse_proto, { "Protocol", "dvb-s2_gse.proto", - FT_UINT16, BASE_HEX | BASE_RANGE_STRING, &gse_proto, 0x0, + FT_UINT16, BASE_HEX | BASE_RANGE_STRING, RVALS(gse_proto), 0x0, "Protocol Type", HFILL} }, {&hf_dvb_s2_gse_label6, { |