summaryrefslogtreecommitdiff
path: root/plugins/docsis
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-07-14 19:04:32 -0700
committerGuy Harris <guy@alum.mit.edu>2016-07-15 02:09:39 +0000
commit7f92c24fafcdfe57b4564536a824f323f586939c (patch)
tree3d47790753c7da091790e2c82f27fc6405453b2e /plugins/docsis
parent9397b262e9a4d9d0eae15cdd81f0c40226c67cdd (diff)
downloadwireshark-7f92c24fafcdfe57b4564536a824f323f586939c.tar.gz
Widen some variables.
Perhaps they cannot ever have values > 65535, but there's really no benefit to restricting them to 16 bits on the 32-bit and 64-bit platforms on which we run, and this might address what CID 1364088 is *really* complaining about. Change-Id: I5238261d04783401873de89469f8e2906554add4 Reviewed-on: https://code.wireshark.org/review/16454 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'plugins/docsis')
-rw-r--r--plugins/docsis/packet-dpd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/docsis/packet-dpd.c b/plugins/docsis/packet-dpd.c
index b06618ab9a..edf3e87596 100644
--- a/plugins/docsis/packet-dpd.c
+++ b/plugins/docsis/packet-dpd.c
@@ -143,7 +143,7 @@ static const value_string docsis_dpd_tlv_subc_assign_vector_modulation_str[] = {
/* Dissection */
static void
-dissect_dpd_subcarrier_assignment_range_list(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, guint16 start, guint16 len)
+dissect_dpd_subcarrier_assignment_range_list(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, guint start, guint len)
{
proto_item *it;
proto_tree *subcarrier_assignment_tree;
@@ -179,12 +179,12 @@ dissect_dpd_subcarrier_assignment_range_list(tvbuff_t * tvb, packet_info * pinfo
}
static void
-dissect_dpd_subcarrier_assignment_vector(tvbuff_t * tvb, proto_tree * tree, guint16 start, guint16 len)
+dissect_dpd_subcarrier_assignment_vector(tvbuff_t * tvb, proto_tree * tree, guint start, guint len)
{
proto_item *it;
proto_tree *subcarrier_assignment_vector_tree;
guint8 subcarrier_assignment_vector_oddness;
- gint32 vector_index;
+ guint vector_index;
it = proto_tree_add_protocol_format (tree, proto_docsis_dpd, tvb, start-3, len+3, ".6 Subcarrier Assignment Vector");
subcarrier_assignment_vector_tree = proto_item_add_subtree (it, ett_docsis_dpd_tlv_subcarrier_assignment_vector);
@@ -208,12 +208,12 @@ dissect_dpd_subcarrier_assignment_vector(tvbuff_t * tvb, proto_tree * tree, guin
static void
-dissect_dpd_tlv (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, guint16 start, guint16 len)
+dissect_dpd_tlv (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, guint start, guint len)
{
proto_item *it;
proto_tree *tlv_tree;
- guint16 pos = start;
- guint16 length;
+ guint pos = start;
+ guint length;
guint8 type;
it = proto_tree_add_protocol_format (tree, proto_docsis_dpd, tvb, 0, len, "TLV Data");
@@ -270,7 +270,7 @@ dissect_dpd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data
guint8 downstream_channel_id;
guint8 profile_identifier;
guint8 configuration_change_count;
- guint16 len;
+ guint len;
downstream_channel_id = tvb_get_guint8 (tvb, 0);
profile_identifier = tvb_get_guint8 (tvb, 1);
configuration_change_count = tvb_get_guint8 (tvb, 2);