aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-10-09 18:57:35 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-10-09 18:57:35 +0000
commit9f87a8bf94fac64f8a9c49bfd1f4b5a272ef981c (patch)
treedfc052949a839202bda2b15f6f143079a572a2e4 /asn1
parentfdb832cf1b92327335e69db096287fca9802e081 (diff)
Put Tag and lengt in the tree.
svn path=/trunk/; revision=26397
Diffstat (limited to 'asn1')
-rw-r--r--asn1/gsmmap/gsmmap.cnf6
-rw-r--r--asn1/gsmmap/packet-gsmmap-template.c11
2 files changed, 16 insertions, 1 deletions
diff --git a/asn1/gsmmap/gsmmap.cnf b/asn1/gsmmap/gsmmap.cnf
index 26a935c63f..b609726522 100644
--- a/asn1/gsmmap/gsmmap.cnf
+++ b/asn1/gsmmap/gsmmap.cnf
@@ -653,12 +653,16 @@ if (!actx->value_ptr)
*/
/* Get tag */
octet = tvb_get_guint8(actx->value_ptr,0);
+ proto_tree_add_item(subtree, hf_gsm_map_ie_tag, actx->value_ptr, 0,1,FALSE);
/* get length */
length = tvb_get_guint8(actx->value_ptr,1);
+ proto_tree_add_item(subtree, hf_gsm_map_ie_len, actx->value_ptr, 1,1,FALSE);
/* Branch on tag */
switch(octet){
- case 4:
+ case 4:
+ /* Dissect the data part */
de_bearer_cap(actx->value_ptr, subtree, 2, length, NULL, 0);
+ /* TODO: There may be more than one IE */
break;
default:
proto_tree_add_text(subtree, actx->value_ptr, 0, length, "If you want this decdoded send the packet to Wireshark dev");
diff --git a/asn1/gsmmap/packet-gsmmap-template.c b/asn1/gsmmap/packet-gsmmap-template.c
index 2accd17563..e8f58ab9eb 100644
--- a/asn1/gsmmap/packet-gsmmap-template.c
+++ b/asn1/gsmmap/packet-gsmmap-template.c
@@ -155,6 +155,8 @@ static int hf_gsm_map_cbs_coding_grp4_7_class = -1;
static int hf_gsm_map_cbs_coding_grp15_mess_code = -1;
static int hf_gsm_map_cbs_coding_grp15_class = -1;
static int hf_gsm_map_tmsi = -1;
+static int hf_gsm_map_ie_tag = -1;
+static int hf_gsm_map_ie_len = -1;
#include "packet-gsm_map-hf.c"
@@ -2627,6 +2629,15 @@ void proto_register_gsm_map(void) {
FT_BYTES, BASE_HEX, NULL, 0,
"gsm_map.TMSI", HFILL }},
+ { &hf_gsm_map_ie_tag,
+ { "Tag", "gsm_map.ie_tag",
+ FT_UINT8, BASE_DEC, NULL, 0,
+ "GSM 04.08 tag", HFILL }},
+ { &hf_gsm_map_ie_len,
+ { "Length", "gsm_map.ie_length",
+ FT_UINT8, BASE_DEC, NULL, 0,
+ "Length", HFILL }},
+
#include "packet-gsm_map-hfarr.c"
};