diff options
author | Adrian Simionov <daniel.simionov@gmail.com> | 2016-06-01 21:06:44 +1000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-06-01 14:05:58 +0000 |
commit | bd932bb2e11f90c3f95b135ccaeaab7d57623963 (patch) | |
tree | 4e4a3d20d7fd5b3a3feccb83b30c705e01edc458 /plugins | |
parent | 55548f2e207923b0535057aead3e70c0c5950da2 (diff) |
[docsis->type35ucd] Fix TLV 15 & 16 bugs
+ TLV 15 has value decoded as on off
+ TLV 16 shows text parameters instead of decimal value
Change-Id: I6f0baa410f12e20825379a3ff0cd6174aa2bc576
Reviewed-on: https://code.wireshark.org/review/15678
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/docsis/packet-type35ucd.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/plugins/docsis/packet-type35ucd.c b/plugins/docsis/packet-type35ucd.c index db1715b102..3094283195 100644 --- a/plugins/docsis/packet-type35ucd.c +++ b/plugins/docsis/packet-type35ucd.c @@ -270,8 +270,12 @@ static const value_string max_scheduled_codes_vals[] = { {0, NULL} }; -/* Windows does not allow data copy between dlls */ -const true_false_string type35_tfs_on_off = { "On", "Off" }; +static const value_string ranging_required[] = { + {0, "No ranging required."}, + {1, "Unicast initial ranging required."}, + {2, "Broadcast initial ranging required."}, + {0, NULL} +}; /* Dissection */ static int @@ -959,7 +963,7 @@ proto_register_docsis_type35ucd (void) }, {&hf_docsis_type35ucd_scdma_mode_enable, {"SCDMA Mode Enable", "docsis_type35ucd.scdmaenable", - FT_BOOLEAN, BASE_NONE, TFS(&type35_tfs_on_off), 0x0, + FT_UINT8, BASE_DEC, VALS (on_off_vals), 0x0, NULL, HFILL} }, {&hf_docsis_type35ucd_scdma_spreading_interval, @@ -999,12 +1003,12 @@ proto_register_docsis_type35ucd (void) }, {&hf_docsis_type35ucd_maintain_power_spectral_density, {"Maintain power spectral density", "docsis_type35ucd.maintainpowerspectraldensity", - FT_BYTES, BASE_NONE, NULL, 0x0, + FT_UINT8, BASE_DEC, VALS (on_off_vals), 0x0, NULL, HFILL} }, {&hf_docsis_type35ucd_ranging_required, {"Ranging Required", "docsis_type35ucd.rangingrequired", - FT_BYTES, BASE_NONE, NULL, 0x0, + FT_UINT8, BASE_DEC, VALS (ranging_required), 0x0, NULL, HFILL} }, {&hf_docsis_type35ucd_rnghoff_cm, |