aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ber.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-04-20 08:35:47 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-04-20 08:35:47 +0000
commit20a4d3257e771f5c50771db6e63cdb74fb6b0c57 (patch)
tree6c7c0cbdcdb744ecc85aac148fe6bc707bc9dc12 /epan/dissectors/packet-ber.h
parent5115a265a90d07aac274f7579285caeba266f128 (diff)
Add a tree parameter to get_ber_length() so that
IF the length seems bogus, like longer than the reported tvb_length we add a helpful text item to the tree and generate a [malformed packet] change all callers of get_ber_length to the new signature. svn path=/trunk/; revision=14145
Diffstat (limited to 'epan/dissectors/packet-ber.h')
-rw-r--r--epan/dissectors/packet-ber.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ber.h b/epan/dissectors/packet-ber.h
index a15264056a..ecefef4337 100644
--- a/epan/dissectors/packet-ber.h
+++ b/epan/dissectors/packet-ber.h
@@ -80,7 +80,7 @@ extern int dissect_ber_identifier(packet_info *pinfo, proto_tree *tree, tvbuff_t
/* this function dissects the identifier octer of the BER TLV.
* We only handle (TAGs and) LENGTHs that fit inside 32 bit integers.
*/
-extern int get_ber_length(tvbuff_t *tvb, int offset, guint32 *length, gboolean *ind);
+extern int get_ber_length(proto_tree *tree, tvbuff_t *tvb, int offset, guint32 *length, gboolean *ind);
extern int dissect_ber_length(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 *length, gboolean *ind);
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);