diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-08-16 12:36:22 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-08-16 12:36:22 +0000 |
commit | 8b515e9340f9eb93c79b74d129b1fddfb8e5299a (patch) | |
tree | 4a92d1e15649b285aa970ae51790d8e6747ca258 /epan/dissectors/packet-isl.c | |
parent | fe6f8b92c7f1f72a0eb677f01899f1dfa07b5342 (diff) |
Switch a bunch of dissectors over to using tvb_new_subset_remaining()
svn path=/trunk/; revision=29446
Diffstat (limited to 'epan/dissectors/packet-isl.c')
-rw-r--r-- | epan/dissectors/packet-isl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-isl.c b/epan/dissectors/packet-isl.c index d403c58893..745a6b746d 100644 --- a/epan/dissectors/packet-isl.c +++ b/epan/dissectors/packet-isl.c @@ -197,7 +197,7 @@ dissect_isl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int fcs_len) TRY { payload_tvb = tvb_new_subset(tvb, 14, length, length); - trailer_tvb = tvb_new_subset(tvb, 14 + length, -1, -1); + trailer_tvb = tvb_new_subset_remaining(tvb, 14 + length); } CATCH2(BoundsError, ReportedBoundsError) { /* Either: @@ -225,7 +225,7 @@ dissect_isl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int fcs_len) /* The length field is 0; make it the length remaining in the packet after the first 14 bytes. */ length = tvb_reported_length_remaining(tvb, 14); - payload_tvb = tvb_new_subset(tvb, 14, -1, -1); + payload_tvb = tvb_new_subset_remaining(tvb, 14); trailer_tvb = NULL; } @@ -314,12 +314,12 @@ dissect_isl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int fcs_len) proto_tree_add_item(fh_tree, hf_isl_fcs_not_incl, payload_tvb, 16, 1, FALSE); proto_tree_add_item(fh_tree, hf_isl_esize, payload_tvb, 16, 1, FALSE); } - next_tvb = tvb_new_subset(payload_tvb, 17, -1, -1); + next_tvb = tvb_new_subset_remaining(payload_tvb, 17); call_dissector(tr_handle, next_tvb, pinfo, tree); break; default: - next_tvb = tvb_new_subset(payload_tvb, 12, -1, -1); + next_tvb = tvb_new_subset_remaining(payload_tvb, 12); call_dissector(data_handle, next_tvb, pinfo, tree); break; } |