HNBAP: Break out MCC and MNC from PLMNidentity

This commit is contained in:
John Thacker 2021-02-15 19:39:06 -05:00
parent 2a1de77c72
commit 20ab1ba46b
2 changed files with 16 additions and 1 deletions

View File

@ -162,6 +162,14 @@ AccessResult
dissect_e212_imsi(parameter_tvb, actx->pinfo, subtree, 0, tvb_reported_length(parameter_tvb), FALSE);
}
#.FN_BODY PLMNidentity VAL_PTR = &parameter_tvb
tvbuff_t *parameter_tvb;
%(DEFAULT_BODY)s
if (parameter_tvb) {
dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, tree, 0, E212_NONE, FALSE);
}
#.END
#.ASSIGN_VALUE_TO_TYPE # HNBAP ASN.1 does not have constants assigned to types
# ProcedureCode
id-HNBRegister ProcedureCode

View File

@ -940,8 +940,15 @@ dissect_hnbap_CSGMembershipStatus(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t
static int
dissect_hnbap_PLMNidentity(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
#line 166 "./asn1/hnbap/hnbap.cnf"
tvbuff_t *parameter_tvb;
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index,
3, 3, FALSE, NULL);
3, 3, FALSE, &parameter_tvb);
if (parameter_tvb) {
dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, tree, 0, E212_NONE, FALSE);
}
return offset;
}