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
c84fd646
Commit
c84fd646
authored
Apr 28, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for PLMN
parent
60ba82f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
src/nas/ies/5GSMobilityIdentity.cpp
src/nas/ies/5GSMobilityIdentity.cpp
+14
-6
No files found.
src/nas/ies/5GSMobilityIdentity.cpp
View file @
c84fd646
...
@@ -558,11 +558,14 @@ int _5GSMobilityIdentity::suci_decodefrombuffer(
...
@@ -558,11 +558,14 @@ int _5GSMobilityIdentity::suci_decodefrombuffer(
decoded_size
++
;
decoded_size
++
;
mnc
+=
((
octet
&
0x0f
)
*
100
+
((
octet
&
0xf0
)
>>
4
)
*
10
);
mnc
+=
((
octet
&
0x0f
)
*
100
+
((
octet
&
0xf0
)
>>
4
)
*
10
);
}
}
std
::
string
mnc_str
=
std
::
to_string
(
mnc
);
if
(
mnc
<
10
)
{
mnc_str
=
"0"
+
mnc_str
;
}
Logger
::
nas_mm
().
debug
(
Logger
::
nas_mm
().
debug
(
"MCC %s, MNC %s"
,
std
::
to_string
(
mcc
).
c_str
(),
"MCC %s, MNC %s"
,
std
::
to_string
(
mcc
).
c_str
(),
mnc_str
.
c_str
());
std
::
to_string
(
mnc
).
c_str
());
supi_format_imsi
->
mcc
=
(
const
string
)(
std
::
to_string
(
mcc
));
supi_format_imsi
->
mcc
=
(
const
string
)(
std
::
to_string
(
mcc
));
supi_format_imsi
->
mnc
=
(
const
string
)(
std
::
to_string
(
mnc
)
);
supi_format_imsi
->
mnc
=
(
const
string
)(
mnc_str
);
int
routid
=
0
;
int
routid
=
0
;
uint8_t
digit
[
4
];
uint8_t
digit
[
4
];
octet
=
*
(
buf
+
decoded_size
);
octet
=
*
(
buf
+
decoded_size
);
...
@@ -655,11 +658,16 @@ int _5GSMobilityIdentity::_5g_guti_decodefrombuffer(uint8_t* buf, int len) {
...
@@ -655,11 +658,16 @@ int _5GSMobilityIdentity::_5g_guti_decodefrombuffer(uint8_t* buf, int len) {
mnc
+=
((
octet
&
0x0f
)
*
100
+
((
octet
&
0xf0
)
>>
4
)
*
10
);
mnc
+=
((
octet
&
0x0f
)
*
100
+
((
octet
&
0xf0
)
>>
4
)
*
10
);
Logger
::
nas_mm
().
debug
(
"MNC (3 digits): %s"
,
std
::
to_string
(
mnc
).
c_str
());
Logger
::
nas_mm
().
debug
(
"MNC (3 digits): %s"
,
std
::
to_string
(
mnc
).
c_str
());
}
}
std
::
string
mnc_str
=
std
::
to_string
(
mnc
);
if
(
mnc
<
10
)
{
mnc_str
=
"0"
+
mnc_str
;
}
Logger
::
nas_mm
().
debug
(
Logger
::
nas_mm
().
debug
(
"MCC %s, MNC %s"
,
std
::
to_string
(
mcc
).
c_str
(),
"MCC %s, MNC %s"
,
std
::
to_string
(
mcc
).
c_str
(),
mnc_str
.
c_str
());
std
::
to_string
(
mnc
).
c_str
());
_5g_guti
->
mcc
=
(
const
string
)(
std
::
to_string
(
mcc
));
_5g_guti
->
mcc
=
(
const
string
)(
std
::
to_string
(
mcc
));
_5g_guti
->
mnc
=
(
const
string
)(
std
::
to_string
(
mnc
)
);
_5g_guti
->
mnc
=
(
const
string
)(
mnc_str
);
_5g_guti
->
amf_region_id
=
*
(
buf
+
decoded_size
);
_5g_guti
->
amf_region_id
=
*
(
buf
+
decoded_size
);
decoded_size
++
;
decoded_size
++
;
...
...
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