summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-ber.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-02-28 09:39:53 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-02-28 09:39:53 +0000
commit590d27a8c0feeeaff771e2652886efa147f9d2f2 (patch)
tree95ccbf296822ef7fa6f01e786b7fee3c001dc85a /epan/dissectors/packet-ber.h
parentf85a15898154296c35922e371d60ef303a77e90e (diff)
downloadwireshark-590d27a8c0feeeaff771e2652886efa147f9d2f2.tar.gz
add new dissect_ber_integer64() that can handle 8,16,24,32 and 64bit integers.
use proto_tree_add_[u]int[8,16,24,32,64]() instread of proto_tree_add_item() since BER integers may well be encoded in less bytes than the type requires. (i do not think the old code with proto_tree_add_item() could have handleded negative values very well or at all.) svn path=/trunk/; revision=17425
Diffstat (limited to 'epan/dissectors/packet-ber.h')
-rw-r--r--epan/dissectors/packet-ber.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ber.h b/epan/dissectors/packet-ber.h
index d18fb2a41d..eed0051200 100644
--- a/epan/dissectors/packet-ber.h
+++ b/epan/dissectors/packet-ber.h
@@ -90,6 +90,8 @@ extern int dissect_ber_length(packet_info *pinfo, proto_tree *tree, tvbuff_t *tv
extern int dissect_ber_octet_string(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id, tvbuff_t **out_tvb);
extern int dissect_ber_octet_string_wcb(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id, ber_callback func);
+extern int dissect_ber_integer64(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id, gint64 *value);
+
extern int dissect_ber_integer(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id, guint32 *value);
extern int dissect_ber_null(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id);