aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2015-04-02 15:07:49 +0200
committerAnders Broman <a.broman58@gmail.com>2015-04-03 15:12:11 +0000
commitb9cf389e436fcf42f9f59653f18cdd4f2af0f05e (patch)
tree16014cb867b4da493016c94df842a3bbcde05fc5 /asn1
parenta5b51d5a826541dd3e5f3a3a4cc3be9d73dd878d (diff)
[S1AP] Display the decimal value for TAC.
Change-Id: I12127b5f7e53e2d47a42ad54d4e952f6a184d7b6 Reviewed-on: https://code.wireshark.org/review/7883 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'asn1')
-rw-r--r--asn1/s1ap/s1ap.cnf13
1 files changed, 12 insertions, 1 deletions
diff --git a/asn1/s1ap/s1ap.cnf b/asn1/s1ap/s1ap.cnf
index c009f9c7ea..86a58b6808 100644
--- a/asn1/s1ap/s1ap.cnf
+++ b/asn1/s1ap/s1ap.cnf
@@ -236,12 +236,23 @@ obj_id = NULL;
if (is_ascii)
proto_item_append_text(actx->created_item,"(%%s)",tvb_format_text(parameter_tvb, 0, length));
+
+#.FN_BODY TAC VAL_PTR = &parameter_tvb
+tvbuff_t *parameter_tvb=NULL;
+
+%(DEFAULT_BODY)s
+
+ if (!parameter_tvb)
+ return offset;
+
+ proto_item_append_text(actx->created_item," (%%u)",tvb_get_ntohs(parameter_tvb, 0));
+
#.END
#.FN_BODY NAS-PDU VAL_PTR = &parameter_tvb
- tvbuff_t *parameter_tvb=NULL;
+tvbuff_t *parameter_tvb=NULL;
%(DEFAULT_BODY)s