aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rpl.c
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-16 12:36:22 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-16 12:36:22 +0000
commit8b515e9340f9eb93c79b74d129b1fddfb8e5299a (patch)
tree4a92d1e15649b285aa970ae51790d8e6747ca258 /epan/dissectors/packet-rpl.c
parentfe6f8b92c7f1f72a0eb677f01899f1dfa07b5342 (diff)
Switch a bunch of dissectors over to using tvb_new_subset_remaining()
svn path=/trunk/; revision=29446
Diffstat (limited to 'epan/dissectors/packet-rpl.c')
-rw-r--r--epan/dissectors/packet-rpl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-rpl.c b/epan/dissectors/packet-rpl.c
index a2746d8349..fd04576c6a 100644
--- a/epan/dissectors/packet-rpl.c
+++ b/epan/dissectors/packet-rpl.c
@@ -253,13 +253,13 @@ dissect_rpl_container(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
default:
call_dissector(data_handle,
- tvb_new_subset(tvb, 4, -1, -1), pinfo,
+ tvb_new_subset_remaining(tvb, 4), pinfo,
tree);
break;
}
if (tvb_reported_length(tvb) > offset)
call_dissector(data_handle,
- tvb_new_subset(tvb, offset, -1, -1), pinfo, tree);
+ tvb_new_subset_remaining(tvb, offset), pinfo, tree);
}
static void
@@ -286,13 +286,13 @@ dissect_rpl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
hidden_item = proto_tree_add_uint(rpl_tree, hf_rpl_type, tvb, 2, 2,
rpl_type);
PROTO_ITEM_SET_HIDDEN(hidden_item);
- next_tvb = tvb_new_subset(tvb, 0, -1, -1);
+ next_tvb = tvb_new_subset_remaining(tvb, 0);
set_actual_length(next_tvb, rpl_len);
dissect_rpl_container(next_tvb, pinfo, rpl_tree);
if (tvb_reported_length(tvb) > rpl_len)
call_dissector(data_handle,
- tvb_new_subset(tvb, rpl_len, -1, -1), pinfo,
+ tvb_new_subset_remaining(tvb, rpl_len), pinfo,
tree);
}
}