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
57d375b8
Commit
57d375b8
authored
Feb 14, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
c4bab8cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
18 deletions
+5
-18
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+5
-3
src/common/conversions.cpp
src/common/conversions.cpp
+0
-9
src/common/conversions.hpp
src/common/conversions.hpp
+0
-6
No files found.
src/amf-app/amf_n1.cpp
View file @
57d375b8
...
...
@@ -829,8 +829,8 @@ void amf_n1::service_request_handle(
string
tmsi
=
{};
if
(
service_request
->
Get5gSTmsi
(
amf_set_id
,
amf_pointer
,
tmsi
))
{
std
::
string
guti
=
conv
::
tmsi_to_guti
(
uc
->
tai
.
mcc
,
uc
->
tai
.
mnc
,
amf_cfg
.
guami
.
regionID
,
amf_set_id
,
amf_pointer
,
tmsi
);
uc
->
tai
.
mcc
,
uc
->
tai
.
mnc
,
amf_cfg
.
guami
.
regionID
,
std
::
to_string
(
amf_set_id
),
std
::
to_string
(
amf_pointer
)
,
tmsi
);
Logger
::
amf_app
().
debug
(
"GUTI %s, 5G-TMSI %s"
,
guti
.
c_str
(),
tmsi
.
c_str
());
...
...
@@ -2588,7 +2588,9 @@ void amf_n1::security_mode_complete_handle(
std
::
string
guti
=
conv
::
tmsi_to_guti
(
mcc
,
mnc
,
amf_cfg
.
guami
.
regionID
,
amf_cfg
.
guami
.
AmfSetID
,
amf_cfg
.
guami
.
AmfPointer
,
conv
::
tmsi_to_string
(
tmsi
));
Logger
::
amf_n1
().
debug
(
"Allocated GUTI %s"
,
guti
.
c_str
());
Logger
::
amf_n1
().
debug
(
"Allocated GUTI %s (TMSI %s)"
,
guti
.
c_str
(),
conv
::
tmsi_to_string
(
tmsi
).
c_str
());
// registration_accept->SetT3512Value(0x5, T3512_TIMER_VALUE_MIN);
uint8_t
buffer
[
BUFFER_SIZE_1024
]
=
{
0
};
...
...
src/common/conversions.cpp
View file @
57d375b8
...
...
@@ -511,15 +511,6 @@ std::string conv::tmsi_to_guti(
return
{
mcc
+
mnc
+
region_id
+
_5g_s_tmsi
};
}
//------------------------------------------------------------------------------
std
::
string
conv
::
tmsi_to_guti
(
const
std
::
string
&
mcc
,
const
std
::
string
&
mnc
,
const
std
::
string
&
region_id
,
uint16_t
amf_set_id
,
uint8_t
amf_pointer
,
const
std
::
string
&
tmsi
)
{
return
{
mcc
+
mnc
+
region_id
+
std
::
to_string
(
amf_set_id
)
+
std
::
to_string
(
amf_pointer
)
+
tmsi
};
}
//------------------------------------------------------------------------------
std
::
string
conv
::
tmsi_to_guti
(
const
std
::
string
&
mcc
,
const
std
::
string
&
mnc
,
...
...
src/common/conversions.hpp
View file @
57d375b8
...
...
@@ -103,16 +103,10 @@ class conv {
static
std
::
string
tmsi_to_guti
(
const
std
::
string
&
mcc
,
const
std
::
string
&
mnc
,
const
std
::
string
&
region_id
,
const
std
::
string
&
_5g_s_tmsi
);
static
std
::
string
tmsi_to_guti
(
const
std
::
string
&
mcc
,
const
std
::
string
&
mnc
,
const
std
::
string
&
region_id
,
uint16_t
amf_set_id
,
uint8_t
amf_pointer
,
const
std
::
string
&
tmsi
);
static
std
::
string
tmsi_to_guti
(
const
std
::
string
&
mcc
,
const
std
::
string
&
mnc
,
const
std
::
string
&
region_id
,
const
std
::
string
&
amf_set_id
,
const
std
::
string
&
amf_pointer
,
const
std
::
string
&
tmsi
);
static
std
::
string
imsi_to_supi
(
const
std
::
string
&
imsi
);
static
std
::
string
get_imsi
(
const
std
::
string
&
mcc
,
const
std
::
string
&
mnc
,
const
std
::
string
&
msin
);
...
...
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