forked from osmocom/wireshark
M3AP: use unit strings
Change-Id: I433b6357914063ba7dbbe119771770e98e019091 Reviewed-on: https://code.wireshark.org/review/19324 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
934f255c07
commit
6292d14148
|
@ -116,9 +116,9 @@ ProtocolIE-Field/value ie_field_value
|
|||
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
|
||||
3, 3, FALSE, ¶meter_tvb);
|
||||
|
||||
if (!parameter_tvb)
|
||||
return offset;
|
||||
dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, tree, 0, E212_NONE, FALSE);
|
||||
if (!parameter_tvb)
|
||||
return offset;
|
||||
dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, tree, 0, E212_NONE, FALSE);
|
||||
#.END
|
||||
|
||||
#.FN_BODY IPAddress VAL_PTR = ¶meter_tvb
|
||||
|
@ -162,8 +162,8 @@ ProtocolIE-Field/value ie_field_value
|
|||
proto_tree_add_string(tree, hf_m3ap_Absolute_Time_ofMBMS_Data_value, parameter_tvb, 0, tvb_len, time_str);
|
||||
#.END
|
||||
|
||||
#.FN_FTR BitRate
|
||||
proto_item_append_text(actx->created_item, "bit/s");
|
||||
#.TYPE_ATTR
|
||||
BitRate DISPLAY=BASE_DEC|BASE_UNIT_STRING STRINGS=&units_bit_sec
|
||||
|
||||
#.FN_BODY MBMS-Service-Area VAL_PTR = ¶meter_tvb
|
||||
tvbuff_t *parameter_tvb=NULL;
|
||||
|
|
|
@ -681,10 +681,6 @@ dissect_m3ap_BitRate(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, pr
|
|||
offset = dissect_per_constrained_integer_64b(tvb, offset, actx, tree, hf_index,
|
||||
0U, G_GUINT64_CONSTANT(10000000000), NULL, FALSE);
|
||||
|
||||
#line 166 "./asn1/m3ap/m3ap.cnf"
|
||||
proto_item_append_text(actx->created_item, "bit/s");
|
||||
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
@ -885,9 +881,9 @@ dissect_m3ap_PLMN_Identity(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _
|
|||
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
|
||||
3, 3, FALSE, ¶meter_tvb);
|
||||
|
||||
if (!parameter_tvb)
|
||||
return offset;
|
||||
dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, tree, 0, E212_NONE, FALSE);
|
||||
if (!parameter_tvb)
|
||||
return offset;
|
||||
dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, tree, 0, E212_NONE, FALSE);
|
||||
|
||||
|
||||
return offset;
|
||||
|
@ -2473,11 +2469,11 @@ void proto_register_m3ap(void) {
|
|||
NULL, HFILL }},
|
||||
{ &hf_m3ap_mBMS_E_RAB_MaximumBitrateDL,
|
||||
{ "mBMS-E-RAB-MaximumBitrateDL", "m3ap.mBMS_E_RAB_MaximumBitrateDL",
|
||||
FT_UINT64, BASE_DEC, NULL, 0,
|
||||
FT_UINT64, BASE_DEC|BASE_UNIT_STRING, &units_bit_sec, 0,
|
||||
"BitRate", HFILL }},
|
||||
{ &hf_m3ap_mBMS_E_RAB_GuaranteedBitrateDL,
|
||||
{ "mBMS-E-RAB-GuaranteedBitrateDL", "m3ap.mBMS_E_RAB_GuaranteedBitrateDL",
|
||||
FT_UINT64, BASE_DEC, NULL, 0,
|
||||
FT_UINT64, BASE_DEC|BASE_UNIT_STRING, &units_bit_sec, 0,
|
||||
"BitRate", HFILL }},
|
||||
{ &hf_m3ap_MBMS_Cell_List_item,
|
||||
{ "ECGI", "m3ap.ECGI_element",
|
||||
|
|
Loading…
Reference in New Issue