aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ber.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-06-29 21:04:37 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-06-29 21:04:37 +0000
commitd0aae6dd3e9f53ec37c351b60fe8765ed31a0b05 (patch)
treeabf41a252d4ba35ae78fc2e2a7b6f3e7e63d0397 /epan/dissectors/packet-ber.c
parent18c69d17b0d304b72dcafa37b0ea7d3a4551a85e (diff)
from metze
prettify dissection of filters containing substring and extensiblematch svn path=/trunk/; revision=18617
Diffstat (limited to 'epan/dissectors/packet-ber.c')
-rw-r--r--epan/dissectors/packet-ber.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c
index 1c5fe40b61..1473a5f861 100644
--- a/epan/dissectors/packet-ber.c
+++ b/epan/dissectors/packet-ber.c
@@ -933,7 +933,7 @@ dissect_ber_integer(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree,
int
-dissect_ber_boolean(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id)
+dissect_ber_boolean_value(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id, gboolean *value)
{
gint8 class;
gboolean pc;
@@ -963,9 +963,18 @@ dissect_ber_boolean(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree,
ber_last_created_item=proto_tree_add_uint(tree, hf_id, tvb, offset-1, 1, val?1:0);
}
+ if(value){
+ *value=(val?TRUE:FALSE);
+ }
+
return offset;
}
+int
+dissect_ber_boolean(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id)
+{
+ return dissect_ber_boolean_value(implicit_tag, pinfo, tree, tvb, offset, hf_id, NULL);
+}