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 /pcap | |
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 'pcap')
0 files changed, 0 insertions, 0 deletions