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
852dd0a6
Commit
852dd0a6
authored
Mar 10, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for log type
parent
54c1eb25
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+1
-1
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+9
-6
src/amf-app/mysql_db.cpp
src/amf-app/mysql_db.cpp
+2
-2
No files found.
src/amf-app/amf_n1.cpp
View file @
852dd0a6
...
...
@@ -303,7 +303,7 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
"Received mac32 (0x%x) from the message"
,
mac32_recv
);
if
(
mac32
==
mac32_recv
)
{
isMatched
=
true
;
Logger
::
amf_n1
().
error
(
"Integrity matched"
);
Logger
::
amf_n1
().
debug
(
"Integrity matched"
);
// nc.get()->security_ctx->ul_count.seq_num ++;
}
if
(
!
isMatched
)
{
...
...
src/amf-app/amf_n2.cpp
View file @
852dd0a6
...
...
@@ -596,12 +596,15 @@ void amf_n2::handle_itti_message(itti_ul_nas_transport& ul_nas_transport) {
"which's amf_ue_ngap_id (0x%x)"
,
amf_ue_ngap_id
,
unc
.
get
()
->
amf_ue_ngap_id
);
}
if
(
unc
.
get
()
->
ng_ue_state
!=
NGAP_UE_CONNECTED
)
{
Logger
::
amf_n2
().
error
(
"Received NGAP UPLINK_NAS_TRANSPORT while UE in state != "
"NGAP_UE_CONNECTED"
);
// return;
}
/*
//TODO: check with a correct NGAP state
if (unc.get()->ng_ue_state != NGAP_UE_CONNECTED) {
Logger::amf_n2().error(
"Received NGAP UPLINK_NAS_TRANSPORT while UE in state != "
"NGAP_UE_CONNECTED");
// return;
}
*/
itti_uplink_nas_data_ind
*
itti_msg
=
new
itti_uplink_nas_data_ind
(
TASK_AMF_N2
,
TASK_AMF_N1
);
itti_msg
->
is_nas_signalling_estab_req
=
false
;
...
...
src/amf-app/mysql_db.cpp
View file @
852dd0a6
...
...
@@ -155,7 +155,7 @@ void amf_n1::mysql_push_rand_sqn(
mysql_free_result
(
res
);
}
else
{
if
(
mysql_field_count
(
db_desc
->
db_conn
)
==
0
)
{
Logger
::
amf_n1
().
error
(
Logger
::
amf_n1
().
debug
(
"[MySQL] %lld rows affected"
,
mysql_affected_rows
(
db_desc
->
db_conn
));
}
else
{
/* some error occurred */
...
...
@@ -197,7 +197,7 @@ void amf_n1::mysql_increment_sqn(std::string imsi) {
mysql_free_result
(
res
);
}
else
{
if
(
mysql_field_count
(
db_desc
->
db_conn
)
==
0
)
{
Logger
::
amf_n1
().
error
(
Logger
::
amf_n1
().
debug
(
"[MySQL] %lld rows affected"
,
mysql_affected_rows
(
db_desc
->
db_conn
));
}
else
{
...
...
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