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
ad3820f9
Commit
ad3820f9
authored
Apr 13, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add function headers for AMF N1/Code cleanup
parent
5d4d1c3e
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
757 additions
and
306 deletions
+757
-306
src/amf-app/amf_app.cpp
src/amf-app/amf_app.cpp
+1
-1
src/amf-app/amf_app.hpp
src/amf-app/amf_app.hpp
+1
-1
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+83
-142
src/amf-app/amf_n1.hpp
src/amf-app/amf_n1.hpp
+657
-159
src/amf-app/mysql_db.cpp
src/amf-app/mysql_db.cpp
+3
-3
src/common/amf.hpp
src/common/amf.hpp
+12
-0
No files found.
src/amf-app/amf_app.cpp
View file @
ad3820f9
...
...
@@ -188,7 +188,7 @@ std::shared_ptr<ue_context> amf_app::amf_ue_id_2_ue_context(
//------------------------------------------------------------------------------
void
amf_app
::
set_amf_ue_ngap_id_2_ue_context
(
const
long
&
amf_ue_ngap_id
,
std
::
shared_ptr
<
ue_context
>&
uc
)
{
const
long
&
amf_ue_ngap_id
,
const
std
::
shared_ptr
<
ue_context
>&
uc
)
{
std
::
unique_lock
lock
(
m_amf_ue_ngap_id2ue_ctx
);
amf_ue_ngap_id2ue_ctx
[
amf_ue_ngap_id
]
=
uc
;
}
...
...
src/amf-app/amf_app.hpp
View file @
ad3820f9
...
...
@@ -151,7 +151,7 @@ class amf_app {
* @return void
*/
void
set_amf_ue_ngap_id_2_ue_context
(
const
long
&
amf_ue_ngap_id
,
std
::
shared_ptr
<
ue_context
>&
uc
);
const
long
&
amf_ue_ngap_id
,
const
std
::
shared_ptr
<
ue_context
>&
uc
);
/*
* Verify if a UE context associated with an UE Context Key exist
...
...
src/amf-app/amf_n1.cpp
View file @
ad3820f9
This diff is collapsed.
Click to expand it.
src/amf-app/amf_n1.hpp
View file @
ad3820f9
This diff is collapsed.
Click to expand it.
src/amf-app/mysql_db.cpp
View file @
ad3820f9
...
...
@@ -37,7 +37,7 @@ extern amf_config amf_cfg;
//------------------------------------------------------------------------------
bool
amf_n1
::
get_mysql_auth_info
(
std
::
string
imsi
,
const
std
::
string
&
imsi
,
mysql_auth_info_t
&
resp
)
{
// openair-cn/tree/v0.5.0/src/oai_hss/db/db_connector.c
MYSQL_RES
*
res
;
...
...
@@ -116,7 +116,7 @@ bool amf_n1::connect_to_mysql() {
//------------------------------------------------------------------------------
void
amf_n1
::
mysql_push_rand_sqn
(
std
::
string
imsi
,
uint8_t
*
rand_p
,
uint8_t
*
sqn
)
{
const
std
::
string
&
imsi
,
uint8_t
*
rand_p
,
uint8_t
*
sqn
)
{
int
status
=
0
;
MYSQL_RES
*
res
;
char
query
[
1000
];
...
...
@@ -171,7 +171,7 @@ void amf_n1::mysql_push_rand_sqn(
}
//------------------------------------------------------------------------------
void
amf_n1
::
mysql_increment_sqn
(
std
::
string
imsi
)
{
void
amf_n1
::
mysql_increment_sqn
(
const
std
::
string
&
imsi
)
{
int
status
;
MYSQL_RES
*
res
;
char
query
[
1000
];
...
...
src/common/amf.hpp
View file @
ad3820f9
...
...
@@ -63,4 +63,16 @@ constexpr uint64_t SECONDS_SINCE_FIRST_EPOCH = 2208988800;
#define NAMF_COMMUNICATION_BASE "/namf-comm/"
#define NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL \
"/ue-contexts/{}/n1-n2-messages" // context id
#define NAS_MESSAGE_DOWNLINK 1
#define NAS_MESSAGE_UPLINK 0
typedef
enum
{
PlainNasMsg
=
0x0
,
IntegrityProtected
=
0x1
,
IntegrityProtectedAndCiphered
=
0x2
,
IntegrityProtectedWithNew5GNASSecurityContext
=
0x3
,
IntegrityProtectedAndCipheredWithNew5GNASSecurityContext
=
0x4
,
}
SecurityHeaderType_t
;
#endif
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