aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dhcp-failover.c
diff options
context:
space:
mode:
authorAndersBroman <a.broman@bredband.net>2015-04-16 15:58:53 +0200
committerAnders Broman <a.broman58@gmail.com>2015-04-16 14:01:45 +0000
commit338f3a5eb1618507035fdabaece8f54d6be54379 (patch)
treeb7c57c1ac38f85e912567b5b0a6a8623e441300f /epan/dissectors/packet-dhcp-failover.c
parent4171f5590b0df5506c98e559100e21300edb33d0 (diff)
Remove deprecated tvb_lengt APIs
Change-Id: Ic3c364384dcc1d87089d646665f5900081de13df Reviewed-on: https://code.wireshark.org/review/8089 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-dhcp-failover.c')
-rw-r--r--epan/dissectors/packet-dhcp-failover.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-dhcp-failover.c b/epan/dissectors/packet-dhcp-failover.c
index d8d89a26e0..003c7a0e92 100644
--- a/epan/dissectors/packet-dhcp-failover.c
+++ b/epan/dissectors/packet-dhcp-failover.c
@@ -468,7 +468,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
return offset; /* payload offset was bogus */
if (!tree)
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
/* if there are any additional header bytes */
if (poffset != offset) {
@@ -870,7 +870,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
offset += option_length;
}
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}
static int
@@ -878,7 +878,7 @@ dissect_dhcpfo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
{
tcp_dissect_pdus(tvb, pinfo, tree, dhcpfo_desegment, 2,
get_dhcpfo_pdu_len, dissect_dhcpfo_pdu, data);
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}
/* Register the protocol with Wireshark */