diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2012-06-19 18:21:53 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2012-06-19 18:21:53 +0000 |
commit | 6356f914c40fbb73c3da552e9905be8e99109446 (patch) | |
tree | 8037393f8e75ac679fb24ba2c8ed40593fdeddc6 /asn1 | |
parent | aab480d1916077f7c2f115cb5874268b6c8f6a6f (diff) |
Use newly introduced proto_tree_add_unicode_string() to add UTF-8 strings
svn path=/trunk/; revision=43379
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/lte-rrc/lte-rrc.cnf | 7 | ||||
-rw-r--r-- | asn1/rrc/rrc.cnf | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/asn1/lte-rrc/lte-rrc.cnf b/asn1/lte-rrc/lte-rrc.cnf index 80b700bf9c..ba1c541ea0 100644 --- a/asn1/lte-rrc/lte-rrc.cnf +++ b/asn1/lte-rrc/lte-rrc.cnf @@ -722,6 +722,13 @@ if(ue_eutra_cap_tvb){ #.TYPE_ATTR SystemInformationBlockType9/hnb-Name TYPE=FT_STRING DISPLAY=BASE_NONE +#.FN_BODY SystemInformationBlockType9/hnb-Name VAL_PTR = &hnb_name_tvb HF_INDEX = -1 + tvbuff_t *hnb_name_tvb = NULL; + +%(DEFAULT_BODY)s + proto_tree_add_unicode_string(tree, hf_index, hnb_name_tvb, 0, -1, + tvb_get_ephemeral_string(hnb_name_tvb, 0, tvb_length(hnb_name_tvb))); + #.FN_BODY RRCConnectionReject-r8-IEs/waitTime %(DEFAULT_BODY)s proto_item_append_text(actx->created_item, "s"); diff --git a/asn1/rrc/rrc.cnf b/asn1/rrc/rrc.cnf index 7cce69fe0b..7b3381415a 100644 --- a/asn1/rrc/rrc.cnf +++ b/asn1/rrc/rrc.cnf @@ -599,6 +599,13 @@ tvbuff_t *parameter_tvb=NULL; #.TYPE_ATTR HNBName TYPE=FT_STRING DISPLAY=BASE_NONE +#.FN_BODY HNBName VAL_PTR = &hnbname_tvb HF_INDEX = -1 + tvbuff_t *hnbname_tvb = NULL; + +%(DEFAULT_BODY)s + proto_tree_add_unicode_string(tree, hf_index, hnbname_tvb, 0, -1, + tvb_get_ephemeral_string(hnbname_tvb, 0, tvb_length(hnbname_tvb))); + #.FN_BODY CN-DomainIdentity VAL_PTR = (guint32*)(&rrc_nas_sys_info_gsm_map_type) %(DEFAULT_BODY)s |