aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iuup.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-11-03 16:19:10 +0100
committerAnders Broman <a.broman58@gmail.com>2014-11-03 15:21:43 +0000
commitbba77c3fc04e6fc7b9485611c99fbd9a5e3f12fe (patch)
tree3a29d550b39eaaea2af7a76bd2b5d5c540688bf6 /epan/dissectors/packet-iuup.c
parent7613327d69747ec4e2b6045c0f29be00128d2b69 (diff)
tvb_length -> tvb_reported_length
Change-Id: I48b618008c8c8accd6f161bdc42e02906a4765b7 Reviewed-on: https://code.wireshark.org/review/5085 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-iuup.c')
-rw-r--r--epan/dissectors/packet-iuup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-iuup.c b/epan/dissectors/packet-iuup.c
index cf2887f325..bc8992cf98 100644
--- a/epan/dissectors/packet-iuup.c
+++ b/epan/dissectors/packet-iuup.c
@@ -356,7 +356,7 @@ iuup_proto_tree_add_bits(proto_tree* tree, int hf, tvbuff_t* tvb, int offset, in
static void dissect_iuup_payload(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree, guint rfci_id _U_, int offset) {
iuup_circuit_t* iuup_circuit;
iuup_rfci_t *rfci;
- int last_offset = tvb_length(tvb) - 1;
+ int last_offset = tvb_reported_length(tvb) - 1;
guint bit_offset = 0;
proto_item* pi;
@@ -593,7 +593,7 @@ update_crc10_by_bytes_iuup(tvbuff_t *tvb, int offset, int length)
static void add_payload_crc(tvbuff_t* tvb, packet_info* pinfo, proto_item* iuup_tree)
{
proto_item *crc_item;
- int length = tvb_length(tvb);
+ int length = tvb_reported_length(tvb);
guint16 crccheck = update_crc10_by_bytes_iuup(tvb, 2, length - 4);
crc_item = proto_tree_add_item(iuup_tree,hf_iuup_payload_crc,tvb,2,2,ENC_BIG_ENDIAN);
@@ -625,7 +625,7 @@ static void dissect_iuup(tvbuff_t* tvb_in, packet_info* pinfo, proto_tree* tree)
col_set_str(pinfo->cinfo, COL_PROTOCOL, "IuUP");
if (two_byte_pseudoheader) {
- int len = tvb_length(tvb_in) - 2;
+ int len = tvb_reported_length(tvb_in) - 2;
phdr = tvb_get_ntohs(tvb,0);
@@ -793,7 +793,7 @@ static void dissect_iuup(tvbuff_t* tvb_in, packet_info* pinfo, proto_tree* tree)
static gboolean dissect_iuup_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
- int len = tvb_length(tvb);
+ int len = tvb_captured_length(tvb);
guint8 first_octet = tvb_get_guint8(tvb,0);
guint8 second_octet = tvb_get_guint8(tvb,1);
@@ -825,7 +825,7 @@ static gboolean dissect_iuup_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree
static void find_iuup(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
- int len = tvb_length(tvb);
+ int len = tvb_captured_length(tvb);
int offset = 0;
while (len > 3) {