diff options
author | Dario Lombardo <lomato@gmail.com> | 2014-06-17 17:45:00 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-06-18 14:14:58 +0000 |
commit | 246fe2ca4c67d8c98caa84e2f57694f6322e2f96 (patch) | |
tree | 5f8651517a3423cce11c50e18371d8a73c3c7665 /epan/dissectors/packet-iuup.c | |
parent | 971ffd683ea23362bd8009567ff7860371e6e2cc (diff) |
Fixup: tvb_* -> tvb_captured
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f
Reviewed-on: https://code.wireshark.org/review/2377
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-iuup.c')
-rw-r--r-- | epan/dissectors/packet-iuup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-iuup.c b/epan/dissectors/packet-iuup.c index 968397cf58..3b4939b8aa 100644 --- a/epan/dissectors/packet-iuup.c +++ b/epan/dissectors/packet-iuup.c @@ -355,7 +355,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_captured_length(tvb) - 1; guint bit_offset = 0; proto_item* pi; @@ -579,7 +579,7 @@ static void add_hdr_crc(tvbuff_t* tvb, packet_info* pinfo, proto_item* iuup_tree 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_captured_length(tvb); guint16 crc10 = tvb_get_ntohs(tvb, 2) & 0x3FF; guint16 crccheck = update_crc10_by_bytes(crc10, tvb_get_ptr(tvb, 4, length - 4), length - 4); @@ -612,7 +612,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_captured_length(tvb_in) - 2; phdr = tvb_get_ntohs(tvb,0); @@ -780,7 +780,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); @@ -812,7 +812,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) { |