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
26a643cd
Commit
26a643cd
authored
Feb 10, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor Registration Complete Msg
parent
7c791424
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
src/nas/msgs/RegistrationComplete.cpp
src/nas/msgs/RegistrationComplete.cpp
+6
-8
src/nas/msgs/RegistrationComplete.hpp
src/nas/msgs/RegistrationComplete.hpp
+4
-4
No files found.
src/nas/msgs/RegistrationComplete.cpp
View file @
26a643cd
...
...
@@ -24,10 +24,9 @@
using
namespace
nas
;
//------------------------------------------------------------------------------
RegistrationComplete
::
RegistrationComplete
()
{
Logger
::
nas_mm
().
debug
(
"Initiating class RegistrationComplete"
);
plain_header
=
nullptr
;
ie_sor_transparent_container
=
nullptr
;
RegistrationComplete
::
RegistrationComplete
()
:
NasMmPlainHeader
(
EPD_5GS_MM_MSG
,
REGISTRATION_COMPLETE
)
{
ie_sor_transparent_container
=
std
::
nullopt
;
}
//------------------------------------------------------------------------------
...
...
@@ -35,15 +34,14 @@ RegistrationComplete::~RegistrationComplete() {}
//------------------------------------------------------------------------------
void
RegistrationComplete
::
SetHeader
(
uint8_t
security_header_type
)
{
plain_header
=
new
NasMmPlainHeader
();
plain_header
->
SetHeader
(
EPD_5GS_MM_MSG
,
security_header_type
,
REGISTRATION_COMPLETE
);
NasMmPlainHeader
::
SetSecurityHeaderType
(
security_header_type
);
}
//------------------------------------------------------------------------------
void
RegistrationComplete
::
SetSorTransparentContainer
(
uint8_t
header
,
const
uint8_t
(
&
value
)[
16
])
{
ie_sor_transparent_container
=
new
SorTransparentContainer
(
header
,
value
);
ie_sor_transparent_container
=
std
::
make_shared
<
SorTransparentContainer
>
<
(
header
,
value
);
}
//------------------------------------------------------------------------------
...
...
src/nas/msgs/RegistrationComplete.hpp
View file @
26a643cd
...
...
@@ -26,13 +26,13 @@
namespace
nas
{
class
RegistrationComplete
{
class
RegistrationComplete
:
public
NasMmPlainHeader
{
public:
RegistrationComplete
();
~
RegistrationComplete
();
int
Encode
(
uint8_t
*
buf
,
int
len
);
int
Decode
(
NasMmPlainHeader
*
header
,
uint8_t
*
buf
,
int
len
);
int
Decode
(
uint8_t
*
buf
,
int
len
);
void
SetHeader
(
uint8_t
security_header_type
);
...
...
@@ -40,8 +40,8 @@ class RegistrationComplete {
// TODO: Get
public:
NasMmPlainHeader
*
plain_header
;
SorTransparentContainer
*
ie_sor_transparent_container
;
// Optional
std
::
optional
<
SorTransparentContainer
>
ie_sor_transparent_container
;
// Optional
};
}
// namespace nas
...
...
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