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
e4ae7895
Commit
e4ae7895
authored
Feb 03, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup for Service Request Msg
parent
b3b96b04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
24 deletions
+22
-24
src/nas/msgs/ServiceRequest.cpp
src/nas/msgs/ServiceRequest.cpp
+12
-12
src/nas/msgs/ServiceRequest.hpp
src/nas/msgs/ServiceRequest.hpp
+10
-12
No files found.
src/nas/msgs/ServiceRequest.cpp
View file @
e4ae7895
...
...
@@ -51,18 +51,18 @@ void ServiceRequest::SetNgKsi(uint8_t tsc, uint8_t key_set_id) {
}
//------------------------------------------------------------------------------
void
ServiceRequest
::
s
etServiceType
(
uint8_t
value
)
{
void
ServiceRequest
::
S
etServiceType
(
uint8_t
value
)
{
ie_service_type
.
Set
(
true
,
value
);
}
//------------------------------------------------------------------------------
void
ServiceRequest
::
Set5gSTmsi
(
uint16_t
amf
SetId
,
uint8_t
amfP
ointer
,
string
tmsi
)
{
ie_5g_s_tmsi
.
Set5gSTmsi
(
amf
SetId
,
amfP
ointer
,
tmsi
);
uint16_t
amf
_set_id
,
uint8_t
amf_p
ointer
,
string
tmsi
)
{
ie_5g_s_tmsi
.
Set5gSTmsi
(
amf
_set_id
,
amf_p
ointer
,
tmsi
);
}
//------------------------------------------------------------------------------
void
ServiceRequest
::
setUplink_data_s
tatus
(
uint16_t
value
)
{
void
ServiceRequest
::
SetUplinkDataS
tatus
(
uint16_t
value
)
{
ie_uplink_data_status
=
std
::
make_optional
<
UplinkDataStatus
>
(
value
);
}
...
...
@@ -72,7 +72,7 @@ void ServiceRequest::SetPduSessionStatus(uint16_t value) {
}
//------------------------------------------------------------------------------
void
ServiceRequest
::
setAllowed_PDU_Session_
Status
(
uint16_t
value
)
{
void
ServiceRequest
::
SetAllowedPduSession
Status
(
uint16_t
value
)
{
ie_allowed_PDU_session_status
=
std
::
make_optional
<
AllowedPDUSessionStatus
>
(
value
);
}
...
...
@@ -291,14 +291,14 @@ int ServiceRequest::Decode(NasMmPlainHeader* header, uint8_t* buf, int len) {
}
//------------------------------------------------------------------------------
bool
ServiceRequest
::
getn
gKSI
(
uint8_t
&
ng_ksi
)
{
bool
ServiceRequest
::
GetN
gKSI
(
uint8_t
&
ng_ksi
)
{
ng_ksi
=
(
ie_ngKSI
.
GetTypeOfSecurityContext
())
|
ie_ngKSI
.
GetNasKeyIdentifier
();
return
true
;
}
//------------------------------------------------------------------------------
uint16_t
ServiceRequest
::
g
etUplinkDataStatus
()
{
uint16_t
ServiceRequest
::
G
etUplinkDataStatus
()
{
if
(
ie_uplink_data_status
)
{
return
ie_uplink_data_status
->
GetValue
();
}
else
{
...
...
@@ -307,7 +307,7 @@ uint16_t ServiceRequest::getUplinkDataStatus() {
}
//------------------------------------------------------------------------------
uint16_t
ServiceRequest
::
g
etPduSessionStatus
()
{
uint16_t
ServiceRequest
::
G
etPduSessionStatus
()
{
if
(
ie_PDU_session_status
)
{
return
ie_PDU_session_status
->
GetValue
();
}
else
{
...
...
@@ -316,7 +316,7 @@ uint16_t ServiceRequest::getPduSessionStatus() {
}
//------------------------------------------------------------------------------
uint16_t
ServiceRequest
::
g
etAllowedPduSessionStatus
()
{
uint16_t
ServiceRequest
::
G
etAllowedPduSessionStatus
()
{
if
(
ie_allowed_PDU_session_status
)
{
return
ie_allowed_PDU_session_status
->
GetValue
();
}
else
{
...
...
@@ -335,7 +335,7 @@ bool ServiceRequest::GetNasMessageContainer(bstring& nas) {
}
//------------------------------------------------------------------------------
uint8_t
ServiceRequest
::
g
etServiceType
()
{
uint8_t
ServiceRequest
::
G
etServiceType
()
{
uint8_t
value
=
0
;
ie_service_type
.
GetValue
(
value
);
return
value
;
...
...
@@ -343,6 +343,6 @@ uint8_t ServiceRequest::getServiceType() {
//------------------------------------------------------------------------------
bool
ServiceRequest
::
Get5gSTmsi
(
uint16_t
&
amf
SetId
,
uint8_t
&
amfP
ointer
,
string
&
tmsi
)
{
return
ie_5g_s_tmsi
.
Get5gSTmsi
(
amf
SetId
,
amfP
ointer
,
tmsi
);
uint16_t
&
amf
_set_id
,
uint8_t
&
amf_p
ointer
,
string
&
tmsi
)
{
return
ie_5g_s_tmsi
.
Get5gSTmsi
(
amf
_set_id
,
amf_p
ointer
,
tmsi
);
}
src/nas/msgs/ServiceRequest.hpp
View file @
e4ae7895
...
...
@@ -22,8 +22,6 @@
#ifndef _SERVICE_REQUEST_H_
#define _SERVICE_REQUEST_H_
#include <string>
#include "bstrlib.h"
#include "NasIeHeader.hpp"
...
...
@@ -40,22 +38,22 @@ class ServiceRequest : public NasMmPlainHeader {
int
Decode
(
NasMmPlainHeader
*
header
,
uint8_t
*
buf
,
int
len
);
void
SetNgKsi
(
uint8_t
tsc
,
uint8_t
key_set_id
);
bool
getn
gKSI
(
uint8_t
&
ng_ksi
);
bool
GetN
gKSI
(
uint8_t
&
ng_ksi
);
void
s
etServiceType
(
uint8_t
value
);
uint8_t
g
etServiceType
();
void
S
etServiceType
(
uint8_t
value
);
uint8_t
G
etServiceType
();
void
Set5gSTmsi
(
uint16_t
amf
SetId
,
uint8_t
amfP
ointer
,
string
tmsi
);
bool
Get5gSTmsi
(
uint16_t
&
amf
SetId
,
uint8_t
&
amfP
ointer
,
string
&
tmsi
);
void
Set5gSTmsi
(
uint16_t
amf
_set_id
,
uint8_t
amf_p
ointer
,
string
tmsi
);
bool
Get5gSTmsi
(
uint16_t
&
amf
_set_id
,
uint8_t
&
amf_p
ointer
,
string
&
tmsi
);
void
setUplink_data_s
tatus
(
uint16_t
value
);
uint16_t
g
etUplinkDataStatus
();
void
SetUplinkDataS
tatus
(
uint16_t
value
);
uint16_t
G
etUplinkDataStatus
();
void
SetPduSessionStatus
(
uint16_t
value
);
uint16_t
g
etPduSessionStatus
();
uint16_t
G
etPduSessionStatus
();
void
setAllowed_PDU_Session_
Status
(
uint16_t
value
);
uint16_t
g
etAllowedPduSessionStatus
();
void
SetAllowedPduSession
Status
(
uint16_t
value
);
uint16_t
G
etAllowedPduSessionStatus
();
void
SetNasMessageContainer
(
bstring
value
);
bool
GetNasMessageContainer
(
bstring
&
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