diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-12-19 13:05:19 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-12-19 13:05:19 +0100 |
commit | b2daa0d803ee529af9549e1a9884e209729be6d3 (patch) | |
tree | 91b28a01d65e095b5874c64a890427acba6cef93 /asn1/ranap | |
parent | 0a3eafee45e78ae887a7f1c579ab54befc1fa47a (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/ranap')
-rw-r--r-- | asn1/ranap/RANAP-IEs.asn | 2 |
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 { |