aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-19 13:05:19 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-19 13:05:19 +0100
commitb2daa0d803ee529af9549e1a9884e209729be6d3 (patch)
tree91b28a01d65e095b5874c64a890427acba6cef93 /asn1
parent0a3eafee45e78ae887a7f1c579ab54befc1fa47a (diff)
ranap ASN.1: Define IMSI as OCTET STRING to work around asn1c bug
When IMSI is a TBCD-STRING type, and TBCD-STRING is defined as OCTET STRING, we end up encoding the IMSI the wrong way. I don't knwo why that is, but changing it fixed the problem, as described below: before this commit: 00 17 PeranentNAS-UE-ID 40 criticality ignore 0a (length) 00 presence = IMSI 08 BUG: why the additional length field? 46 23 91 34 70 77 80 f3 IMSI (643219430777083) after this commit: 00 17 PeranentNAS-UE-ID 40 criticality ignore 09 (length) 50 presence = IMSI 46 23 91 34 70 77 80 f3 IMSI (643219430777083)
Diffstat (limited to 'asn1')
-rw-r--r--asn1/ranap/RANAP-IEs.asn2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/ranap/RANAP-IEs.asn b/asn1/ranap/RANAP-IEs.asn
index 9593ee8..78fcfbe 100644
--- a/asn1/ranap/RANAP-IEs.asn
+++ b/asn1/ranap/RANAP-IEs.asn
@@ -842,7 +842,7 @@ ImmediateMDT ::= SEQUENCE {
iE-Extensions IE-Extensions OPTIONAL
}
-IMSI ::= TBCD-STRING (SIZE (3..8))
+IMSI ::= OCTET STRING (SIZE (3..8))
-- Reference: 23.003
IncludeVelocity ::= ENUMERATED {