summaryrefslogtreecommitdiff
path: root/epan/packet.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-04-21 16:53:00 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-04-21 16:53:00 +0000
commit3ab0c21cbcd9345f8ec77d5c2038e94f4349d5d2 (patch)
tree3c1b9a339442f9e1b8ebd87ec1614d3b82abd983 /epan/packet.h
parentc5783e32df717bf10f8517a86226fd2f479e5a25 (diff)
downloadwireshark-3ab0c21cbcd9345f8ec77d5c2038e94f4349d5d2.tar.gz
Introduce call dissector_try_port_new() to be used when no protocol entry is to be made in the protocols list. Used by asn2wrs dissectors to avoid multiple entrys as calls are made
multiple times for the same PDU. svn path=/trunk/; revision=28106
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h
index cbcddc83c8..9f35f4d234 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -190,6 +190,12 @@ extern gboolean dissector_try_port(dissector_table_t sub_dissectors,
guint32 port, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
/* Look for a given value in a given uint dissector table and, if found,
+ call the dissector with the arguments supplied, and return TRUE,
+ otherwise return FALSE. */
+extern gboolean dissector_try_port_new(dissector_table_t sub_dissectors,
+ guint32 port, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean add_proto_name);
+
+/* Look for a given value in a given uint dissector table and, if found,
return the dissector handle for that value. */
extern dissector_handle_t dissector_get_port_handle(
dissector_table_t sub_dissectors, guint32 port);