aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-09-11 09:06:48 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-09-11 09:06:48 +0000
commita406bb1a50cbd4c7cd42e83ef97365e6d6f8aa6f (patch)
tree91446968fdc200ab6bbde2633e5a6695b1fcdbe4 /epan/packet.c
parent27fb6880c40908764cac81332bd31207903b5fb6 (diff)
Add data parameter to dissector_try_uint_new
svn path=/trunk/; revision=44874
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 13204995b5..85d7768694 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -897,7 +897,8 @@ dissector_reset_uint(const char *name, const guint32 pattern)
gboolean
dissector_try_uint_new(dissector_table_t sub_dissectors, const guint32 uint_val,
- tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, const gboolean add_proto_name)
+ tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
+ const gboolean add_proto_name, void *data)
{
dtbl_entry_t *dtbl_entry;
struct dissector_handle *handle;
@@ -926,7 +927,7 @@ dissector_try_uint_new(dissector_table_t sub_dissectors, const guint32 uint_val,
*/
saved_match_uint = pinfo->match_uint;
pinfo->match_uint = uint_val;
- ret = call_dissector_work(handle, tvb, pinfo, tree, add_proto_name, NULL);
+ ret = call_dissector_work(handle, tvb, pinfo, tree, add_proto_name, data);
pinfo->match_uint = saved_match_uint;
/*
@@ -952,7 +953,7 @@ dissector_try_uint(dissector_table_t sub_dissectors, const guint32 uint_val,
tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- return dissector_try_uint_new(sub_dissectors, uint_val, tvb, pinfo, tree, TRUE);
+ return dissector_try_uint_new(sub_dissectors, uint_val, tvb, pinfo, tree, TRUE, NULL);
}
/* Look for a given value in a given uint dissector table and, if found,