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
cb1f85d5
Commit
cb1f85d5
authored
Nov 18, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for 5GSMobilityIdentity
parent
0fe066bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+4
-0
src/nas/ies/5GSMobilityIdentity.cpp
src/nas/ies/5GSMobilityIdentity.cpp
+6
-5
No files found.
src/amf-app/amf_n1.cpp
View file @
cb1f85d5
...
...
@@ -365,6 +365,10 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
return
;
}
comUt
::
print_buffer
(
"amf_n1"
,
"Uplink Nas Message"
,
(
uint8_t
*
)
bdata
(
recved_nas_msg
),
blength
(
recved_nas_msg
));
uint8_t
ulCount
=
0
;
switch
(
type
)
{
...
...
src/nas/ies/5GSMobilityIdentity.cpp
View file @
cb1f85d5
...
...
@@ -497,8 +497,9 @@ int _5GSMobilityIdentity::decodefrombuffer(
decoded_size
++
;
len2
=
*
(
buf
+
decoded_size
);
decoded_size
++
;
uint16_t
length
=
(
0x0000
)
|
(
len1
<<
8
)
|
len2
;
length
=
(
0x0000
)
|
(
len1
<<
8
)
|
len2
;
Logger
::
amf_n1
().
debug
(
"Decoded 5GSMobilityIdentity IE length %d"
,
length
);
switch
(
*
(
buf
+
decoded_size
)
&
0x07
)
{
case
SUCI
:
{
typeOfIdentity
=
SUCI
;
...
...
@@ -706,14 +707,14 @@ int _5GSMobilityIdentity::imeisv_decodefrombuffer(uint8_t* buf, int len) {
Logger
::
nas_mm
().
debug
(
"decoding 5GSMobilityIdentity IMEISV"
);
int
decoded_size
=
0
;
decode_bstring
(
&
(
_IMEISV
.
identity
),
len
gth
,
(
buf
+
decoded_size
),
len
-
decoded_size
);
decoded_size
+=
len
gth
;
for
(
int
i
=
0
;
i
<
len
gth
;
i
++
)
{
&
(
_IMEISV
.
identity
),
len
,
(
buf
+
decoded_size
),
len
-
decoded_size
);
decoded_size
+=
len
;
for
(
int
i
=
0
;
i
<
len
;
i
++
)
{
Logger
::
nas_mm
().
debug
(
"decoded 5GSMobilityIdentity IMEISV value(0x%x)"
,
(
uint8_t
)
_IMEISV
.
identity
->
data
[
i
]);
}
Logger
::
nas_mm
().
debug
(
"decoded 5GSMobilityIdentity IMEISV len(%d)"
,
decoded_size
);
"decoded 5GSMobilityIdentity IMEISV len
(%d)"
,
decoded_size
);
return
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