diff options
author | Evan Huus <eapache@gmail.com> | 2015-04-04 13:46:01 -0400 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2015-04-05 12:27:40 +0000 |
commit | 4c5b53f0449546708cd28c85d2a01da426e6998a (patch) | |
tree | 0683d206fd1cd55265c6886d591622f061f271c7 /plugins | |
parent | 32d0fc067367646b86c09a7e644ed5fc5817d246 (diff) |
docsis: remove tvb_length calls
Change-Id: Ib35c6436876aa7f933dcec0a97a70ccbbc823905
Reviewed-on: https://code.wireshark.org/review/7913
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/docsis/packet-bintrngreq.c | 2 | ||||
-rw-r--r-- | plugins/docsis/packet-dccack.c | 2 | ||||
-rw-r--r-- | plugins/docsis/packet-dccreq.c | 2 | ||||
-rw-r--r-- | plugins/docsis/packet-dccrsp.c | 2 | ||||
-rw-r--r-- | plugins/docsis/packet-dcd.c | 4 | ||||
-rw-r--r-- | plugins/docsis/packet-docsis.c | 2 | ||||
-rw-r--r-- | plugins/docsis/packet-intrngreq.c | 2 | ||||
-rw-r--r-- | plugins/docsis/packet-type29ucd.c | 4 |
8 files changed, 10 insertions, 10 deletions
diff --git a/plugins/docsis/packet-bintrngreq.c b/plugins/docsis/packet-bintrngreq.c index d3455cd014..dcb21e2335 100644 --- a/plugins/docsis/packet-bintrngreq.c +++ b/plugins/docsis/packet-bintrngreq.c @@ -57,7 +57,7 @@ dissect_bintrngreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) { guint16 offset = 0; bintrngreq_item = proto_tree_add_protocol_format (tree, proto_docsis_bintrngreq, - tvb, offset, tvb_length_remaining (tvb, 0), + tvb, offset, tvb_captured_length(tvb), "Bonded Initial Ranging Request"); bintrngreq_tree = proto_item_add_subtree (bintrngreq_item, ett_docsis_bintrngreq); proto_tree_add_item (bintrngreq_tree, hf_docsis_bintrngreq_capflags, diff --git a/plugins/docsis/packet-dccack.c b/plugins/docsis/packet-dccack.c index 31204ab637..01fb48b0b5 100644 --- a/plugins/docsis/packet-dccack.c +++ b/plugins/docsis/packet-dccack.c @@ -52,7 +52,7 @@ dissect_dccack (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) proto_item *dcc_item; guint16 len; - len = tvb_length_remaining (tvb, 0); + len = tvb_reported_length(tvb); col_set_str(pinfo->cinfo, COL_INFO, "DCC-ACK Message: "); diff --git a/plugins/docsis/packet-dccreq.c b/plugins/docsis/packet-dccreq.c index 077557c8e4..0067cd60e3 100644 --- a/plugins/docsis/packet-dccreq.c +++ b/plugins/docsis/packet-dccreq.c @@ -262,7 +262,7 @@ dissect_dccreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) proto_item *dcc_item; guint16 len; - len = tvb_length_remaining (tvb, 0); + len = tvb_reported_length(tvb); col_set_str(pinfo->cinfo, COL_INFO, "DCC-REQ Message: "); diff --git a/plugins/docsis/packet-dccrsp.c b/plugins/docsis/packet-dccrsp.c index 68567e23d9..7526b8895b 100644 --- a/plugins/docsis/packet-dccrsp.c +++ b/plugins/docsis/packet-dccrsp.c @@ -108,7 +108,7 @@ dissect_dccrsp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) proto_item *dcc_item; guint16 len; - len = tvb_length_remaining (tvb, 0); + len = tvb_reported_length(tvb); col_set_str(pinfo->cinfo, COL_INFO, "DCC-RSP Message: "); diff --git a/plugins/docsis/packet-dcd.c b/plugins/docsis/packet-dcd.c index e3028b8e2e..277a4d1551 100644 --- a/plugins/docsis/packet-dcd.c +++ b/plugins/docsis/packet-dcd.c @@ -518,7 +518,7 @@ dissect_dcd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) proto_item *dcd_item; guint16 len; - len = tvb_length_remaining (tvb, 0); + len = tvb_reported_length(tvb); col_set_str(pinfo->cinfo, COL_INFO, "DCD Message: "); @@ -526,7 +526,7 @@ dissect_dcd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) { dcd_item = proto_tree_add_protocol_format (tree, proto_docsis_dcd, tvb, 0, - tvb_length_remaining (tvb, 0), + tvb_captured_length(tvb), "DCD Message"); dcd_tree = proto_item_add_subtree (dcd_item, ett_docsis_dcd); proto_tree_add_item (dcd_tree, hf_docsis_dcd_config_ch_cnt, tvb, 0, 1, ENC_BIG_ENDIAN); diff --git a/plugins/docsis/packet-docsis.c b/plugins/docsis/packet-docsis.c index 4515f3e776..20458f4a50 100644 --- a/plugins/docsis/packet-docsis.c +++ b/plugins/docsis/packet-docsis.c @@ -375,7 +375,7 @@ dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) hdrlen = 6 + mac_parm; /* Captured PDU Length is based on the length of the header */ - captured_length = tvb_length_remaining (tvb, hdrlen); + captured_length = tvb_captured_length_remaining (tvb, hdrlen); /* If this is a Request Frame, then pdulen is 0 and framelen is 6 */ if ((fctype == FCTYPE_MACSPC) && fcparm == 0x02) diff --git a/plugins/docsis/packet-intrngreq.c b/plugins/docsis/packet-intrngreq.c index f3cae2eae9..94fd39bfe7 100644 --- a/plugins/docsis/packet-intrngreq.c +++ b/plugins/docsis/packet-intrngreq.c @@ -53,7 +53,7 @@ dissect_intrngreq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) { intrngreq_item = proto_tree_add_protocol_format (tree, proto_docsis_intrngreq, tvb, 0, - tvb_length_remaining (tvb, 0), + tvb_captured_length(tvb), "Initial Ranging Request"); intrngreq_tree = proto_item_add_subtree (intrngreq_item, ett_docsis_intrngreq); proto_tree_add_item (intrngreq_tree, hf_docsis_intrngreq_sid, tvb, 0, 2, diff --git a/plugins/docsis/packet-type29ucd.c b/plugins/docsis/packet-type29ucd.c index ed7bcdf2df..94cdff4814 100644 --- a/plugins/docsis/packet-type29ucd.c +++ b/plugins/docsis/packet-type29ucd.c @@ -202,7 +202,7 @@ dissect_type29ucd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) guint16 len; guint8 upchid, symrate; - len = tvb_length_remaining (tvb, 0); + len = tvb_reported_length(tvb); upchid = tvb_get_guint8 (tvb, 0); /* if the upstream Channel ID is 0 then this is for Telephony Return) */ @@ -219,7 +219,7 @@ dissect_type29ucd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) { type29ucd_item = proto_tree_add_protocol_format (tree, proto_docsis_type29ucd, tvb, 0, - tvb_length_remaining (tvb, 0), + tvb_captured_length(tvb), "type29ucd Message"); type29ucd_tree = proto_item_add_subtree (type29ucd_item, ett_docsis_type29ucd); proto_tree_add_item (type29ucd_tree, hf_docsis_type29ucd_upstream_chid, tvb, 0, 1, |