summaryrefslogtreecommitdiff
path: root/epan/packet.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2014-10-06 15:17:46 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2014-10-07 20:27:35 +0000
commitd89cc1cf9ada0d91a6819a7d6677f48ddcc54adc (patch)
tree2ed8caa7404d463bdf8e93cbc52e5fe1593ee6a1 /epan/packet.h
parent47a1735ca1c824eec9590660c54a00c50b939bd3 (diff)
downloadwireshark-d89cc1cf9ada0d91a6819a7d6677f48ddcc54adc.tar.gz
ASN1: Added support for using #.REGISTER_NEW
This will register BER PDU-dissectors as "new". Return number of bytes dissected from dissector_try_* functions. Return number of bytes dissected in DissectorTable:try() This will make it possible to get dissected length when using dissector_try_*() and dissected ASN.1 length in Lua when using DissectorTable:try() (as we already have for Dissector:call). Change-Id: Iee17a68dc214fa0fb50b25fc927026ad7c1cbce4 Reviewed-on: https://code.wireshark.org/review/4531 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/packet.h b/epan/packet.h
index dc09bcb98b..afa17d93ad 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -245,13 +245,13 @@ WS_DLL_PUBLIC void dissector_reset_uint(const char *name, const guint32 pattern)
/* 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. */
-WS_DLL_PUBLIC gboolean dissector_try_uint(dissector_table_t sub_dissectors,
+WS_DLL_PUBLIC int dissector_try_uint(dissector_table_t sub_dissectors,
const guint32 uint_val, 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. */
-WS_DLL_PUBLIC gboolean dissector_try_uint_new(dissector_table_t sub_dissectors,
+WS_DLL_PUBLIC int 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, void *data);
/** Look for a given value in a given uint dissector table and, if found,
@@ -294,7 +294,7 @@ WS_DLL_PUBLIC void dissector_reset_string(const char *name, const gchar *pattern
/* Look for a given string in a given dissector table and, if found, call
the dissector with the arguments supplied, and return TRUE, otherwise
return FALSE. */
-WS_DLL_PUBLIC gboolean dissector_try_string(dissector_table_t sub_dissectors,
+WS_DLL_PUBLIC int dissector_try_string(dissector_table_t sub_dissectors,
const gchar *string, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data);
/** Look for a given value in a given string dissector table and, if found,