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
8f64764b
Commit
8f64764b
authored
Nov 15, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup for AMF_N1
parent
77842cc6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
78 deletions
+32
-78
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+16
-64
src/amf-app/amf_n1.hpp
src/amf-app/amf_n1.hpp
+16
-11
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+0
-1
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+0
-2
No files found.
src/amf-app/amf_n1.cpp
View file @
8f64764b
This diff is collapsed.
Click to expand it.
src/amf-app/amf_n1.hpp
View file @
8f64764b
...
...
@@ -64,6 +64,22 @@ typedef enum {
class
amf_n1
{
public:
std
::
map
<
long
,
std
::
shared_ptr
<
nas_context
>>
amfueid2nas_context
;
// amf ue ngap id
std
::
map
<
std
::
string
,
std
::
shared_ptr
<
nas_context
>>
imsi2nas_context
;
std
::
map
<
std
::
string
,
long
>
supi2amfId
;
std
::
map
<
std
::
string
,
uint32_t
>
supi2ranId
;
mutable
std
::
shared_mutex
m_nas_context
;
std
::
map
<
std
::
string
,
std
::
shared_ptr
<
nas_context
>>
guti2nas_context
;
mutable
std
::
shared_mutex
m_guti2nas_context
;
static
std
::
map
<
std
::
string
,
std
::
string
>
rand_record
;
static
uint8_t
no_random_delta
;
random_state_t
random_state
;
database_t
*
db_desc
;
amf_n1
();
~
amf_n1
();
void
handle_itti_message
(
itti_uplink_nas_data_ind
&
);
...
...
@@ -78,16 +94,6 @@ class amf_n1 {
plmn_t
plmn
);
bool
check_security_header_type
(
SecurityHeaderType
&
type
,
uint8_t
*
buffer
);
std
::
map
<
long
,
std
::
shared_ptr
<
nas_context
>>
amfueid2nas_context
;
// amf ue ngap id
std
::
map
<
std
::
string
,
std
::
shared_ptr
<
nas_context
>>
imsi2nas_context
;
std
::
map
<
std
::
string
,
long
>
supi2amfId
;
std
::
map
<
std
::
string
,
uint32_t
>
supi2ranId
;
mutable
std
::
shared_mutex
m_nas_context
;
std
::
map
<
std
::
string
,
std
::
shared_ptr
<
nas_context
>>
guti2nas_context
;
mutable
std
::
shared_mutex
m_guti2nas_context
;
bool
is_guti_2_nas_context
(
const
std
::
string
&
guti
)
const
;
std
::
shared_ptr
<
nas_context
>
guti_2_nas_context
(
const
std
::
string
&
guti
)
const
;
...
...
@@ -100,7 +106,6 @@ class amf_n1 {
const
long
&
amf_ue_ngap_id
)
const
;
void
set_amf_ue_ngap_id_2_nas_context
(
const
long
&
amf_ue_ngap_id
,
std
::
shared_ptr
<
nas_context
>
nc
);
database_t
*
db_desc
;
// procedures
// specific procedures running logic
...
...
src/amf-app/amf_n11.cpp
View file @
8f64764b
...
...
@@ -61,7 +61,6 @@ using namespace oai::smf::model;
using
namespace
oai
::
smf
::
api
;
using
namespace
web
;
using
namespace
web
::
http
;
// Common features like URIs.
using
namespace
web
::
http
::
client
;
using
namespace
config
;
using
namespace
amf_application
;
...
...
src/amf-app/amf_n2.cpp
View file @
8f64764b
...
...
@@ -75,8 +75,6 @@ extern amf_n11* amf_n11_inst;
extern
amf_config
amf_cfg
;
extern
amf_app
*
amf_app_inst
;
extern
statistics
stacs
;
extern
void
print_buffer
(
const
std
::
string
app
,
const
std
::
string
commit
,
uint8_t
*
buf
,
int
len
);
void
amf_n2_task
(
void
*
);
...
...
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