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
7807ba9a
Commit
7807ba9a
authored
Mar 12, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for decoding PDU Session Status
parent
7b3664cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+1
-1
src/nas/ies/PDU_Session_Status.cpp
src/nas/ies/PDU_Session_Status.cpp
+4
-5
No files found.
src/amf-app/amf_n1.cpp
View file @
7807ba9a
...
...
@@ -626,7 +626,7 @@ void amf_n1::service_request_handle(
nullptr
,
(
uint8_t
*
)
bdata
(
plain_msg
),
blength
(
plain_msg
));
bdestroy
(
plain_msg
);
if
(
serReqNas
->
getPduSessionStatus
()
>
0
)
{
pdu_session_status
=
serReqNas
->
getPduSessionStatus
();
pdu_session_status
=
(
uint16_t
)
serReqNas
->
getPduSessionStatus
();
}
}
break
;
...
...
src/nas/ies/PDU_Session_Status.cpp
View file @
7807ba9a
...
...
@@ -28,6 +28,7 @@
#include "PDU_Session_Status.hpp"
#include "logger.hpp"
#include "common_defs.h"
using
namespace
nas
;
//------------------------------------------------------------------------------
...
...
@@ -98,14 +99,12 @@ int PDU_Session_Status::decodefrombuffer(
if
(
is_option
)
{
decoded_size
++
;
}
_value
=
0x0000
;
length
=
*
(
buf
+
decoded_size
);
decoded_size
++
;
_value
|=
*
(
buf
+
decoded_size
);
decoded_size
++
;
_value
|=
(
*
(
buf
+
decoded_size
))
<<
8
;
decoded_size
++
;
Logger
::
nas_mm
().
debug
(
"decoded PDU_Session_Status value(0x%4x)"
,
_value
);
DECODE_U16
(
buf
+
decoded_size
,
_value
,
decoded_size
);
Logger
::
nas_mm
().
debug
(
"decoded PDU_Session_Status value (0x%x)"
,
_value
);
Logger
::
nas_mm
().
debug
(
"decoded PDU_Session_Status 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