Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
4d1806fd
Commit
4d1806fd
authored
Jan 07, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MCC with 00 for RegistrationRequest
parent
e609ffb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/nas/ies/5GSMobilityIdentity.cpp
src/nas/ies/5GSMobilityIdentity.cpp
+9
-2
No files found.
src/nas/ies/5GSMobilityIdentity.cpp
View file @
4d1806fd
...
...
@@ -562,9 +562,16 @@ int _5GSMobilityIdentity::suci_decodefrombuffer(
if
(
mnc
<
10
)
{
mnc_str
=
"0"
+
mnc_str
;
}
std
::
string
mcc_str
=
std
::
to_string
(
mcc
);
if
(
mcc
<
10
)
{
mcc_str
=
"00"
+
mcc_str
;
}
else
if
(
mcc
<
100
)
{
mcc_str
=
"0"
+
mcc_str
;
}
Logger
::
nas_mm
().
debug
(
"MCC %s, MNC %s"
,
std
::
to_string
(
mcc
)
.
c_str
(),
mnc_str
.
c_str
());
supi_format_imsi
->
mcc
=
(
const
string
)(
std
::
to_string
(
mcc
)
);
"MCC %s, MNC %s"
,
mcc_str
.
c_str
(),
mnc_str
.
c_str
());
supi_format_imsi
->
mcc
=
(
const
string
)(
mcc_str
);
supi_format_imsi
->
mnc
=
(
const
string
)(
mnc_str
);
int
routid
=
0
;
uint8_t
digit
[
4
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment