Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
lizhongxiao
OpenXG-RAN
Commits
e59648e1
Commit
e59648e1
authored
Jan 30, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NGAP: demote some logs to debug, improve others
parent
2e7d9574
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
openair3/NGAP/ngap_common.h
openair3/NGAP/ngap_common.h
+2
-2
openair3/NGAP/ngap_gNB_handlers.c
openair3/NGAP/ngap_gNB_handlers.c
+1
-1
openair3/NGAP/ngap_gNB_nas_procedures.c
openair3/NGAP/ngap_gNB_nas_procedures.c
+7
-7
No files found.
openair3/NGAP/ngap_common.h
View file @
e59648e1
...
@@ -102,7 +102,7 @@ extern int asn1_xer_print;
...
@@ -102,7 +102,7 @@ extern int asn1_xer_print;
# define NGAP_WARN(x, args...) LOG_W(NGAP, x, ##args)
# define NGAP_WARN(x, args...) LOG_W(NGAP, x, ##args)
# define NGAP_TRAF(x, args...) LOG_I(NGAP, x, ##args)
# define NGAP_TRAF(x, args...) LOG_I(NGAP, x, ##args)
# define NGAP_INFO(x, args...) LOG_I(NGAP, x, ##args)
# define NGAP_INFO(x, args...) LOG_I(NGAP, x, ##args)
# define NGAP_DEBUG(x, args...) LOG_
I
(NGAP, x, ##args)
# define NGAP_DEBUG(x, args...) LOG_
D
(NGAP, x, ##args)
#define NGAP_FIND_PROTOCOLIE_BY_ID(IE_TYPE, ie, container, IE_ID, mandatory) \
#define NGAP_FIND_PROTOCOLIE_BY_ID(IE_TYPE, ie, container, IE_ID, mandatory) \
do { \
do { \
...
@@ -118,7 +118,7 @@ extern int asn1_xer_print;
...
@@ -118,7 +118,7 @@ extern int asn1_xer_print;
if (mandatory) { \
if (mandatory) { \
AssertFatal(NGAP, "NGAP_FIND_PROTOCOLIE_BY_ID ie is NULL (searching for ie: %ld)\n", IE_ID); \
AssertFatal(NGAP, "NGAP_FIND_PROTOCOLIE_BY_ID ie is NULL (searching for ie: %ld)\n", IE_ID); \
} else { \
} else { \
NGAP_
INFO
("NGAP_FIND_PROTOCOLIE_BY_ID ie is NULL (searching for ie: %ld)\n", IE_ID); \
NGAP_
DEBUG
("NGAP_FIND_PROTOCOLIE_BY_ID ie is NULL (searching for ie: %ld)\n", IE_ID); \
} \
} \
} \
} \
} while (0); \
} while (0); \
...
...
openair3/NGAP/ngap_gNB_handlers.c
View file @
e59648e1
...
@@ -775,7 +775,7 @@ static int ngap_gNB_handle_initial_context_request(sctp_assoc_t assoc_id, uint32
...
@@ -775,7 +775,7 @@ static int ngap_gNB_handle_initial_context_request(sctp_assoc_t assoc_id, uint32
AssertFatal
(
ie
,
"AllowedNSSAI not present, forging 2 NSSAI
\n
"
);
AssertFatal
(
ie
,
"AllowedNSSAI not present, forging 2 NSSAI
\n
"
);
NGAP_
INFO
(
"AllowedNSSAI.list.count %d
\n
"
,
ie
->
value
.
choice
.
AllowedNSSAI
.
list
.
count
);
NGAP_
DEBUG
(
"AllowedNSSAI.list.count %d
\n
"
,
ie
->
value
.
choice
.
AllowedNSSAI
.
list
.
count
);
msg
->
nb_allowed_nssais
=
ie
->
value
.
choice
.
AllowedNSSAI
.
list
.
count
;
msg
->
nb_allowed_nssais
=
ie
->
value
.
choice
.
AllowedNSSAI
.
list
.
count
;
for
(
i
=
0
;
i
<
ie
->
value
.
choice
.
AllowedNSSAI
.
list
.
count
;
i
++
)
{
for
(
i
=
0
;
i
<
ie
->
value
.
choice
.
AllowedNSSAI
.
list
.
count
;
i
++
)
{
...
...
openair3/NGAP/ngap_gNB_nas_procedures.c
View file @
e59648e1
...
@@ -95,8 +95,8 @@ int ngap_gNB_handle_nas_first_req(instance_t instance, ngap_nas_first_req_t *UEf
...
@@ -95,8 +95,8 @@ int ngap_gNB_handle_nas_first_req(instance_t instance, ngap_nas_first_req_t *UEf
amf_desc_p
=
ngap_gNB_nnsf_select_amf_by_guami
(
instance_p
,
UEfirstReq
->
establishment_cause
,
UEfirstReq
->
ue_identity
.
guami
);
amf_desc_p
=
ngap_gNB_nnsf_select_amf_by_guami
(
instance_p
,
UEfirstReq
->
establishment_cause
,
UEfirstReq
->
ue_identity
.
guami
);
if
(
amf_desc_p
)
{
if
(
amf_desc_p
)
{
NGAP_INFO
(
"
[gNB %ld]
Chose AMF '%s' (assoc_id %d) through GUAMI MCC %d MNC %d AMFRI %d AMFSI %d AMFPT %d
\n
"
,
NGAP_INFO
(
"
UE %d:
Chose AMF '%s' (assoc_id %d) through GUAMI MCC %d MNC %d AMFRI %d AMFSI %d AMFPT %d
\n
"
,
instance
,
UEfirstReq
->
gNB_ue_ngap_id
,
amf_desc_p
->
amf_name
,
amf_desc_p
->
amf_name
,
amf_desc_p
->
assoc_id
,
amf_desc_p
->
assoc_id
,
UEfirstReq
->
ue_identity
.
guami
.
mcc
,
UEfirstReq
->
ue_identity
.
guami
.
mcc
,
...
@@ -115,8 +115,8 @@ int ngap_gNB_handle_nas_first_req(instance_t instance, ngap_nas_first_req_t *UEf
...
@@ -115,8 +115,8 @@ int ngap_gNB_handle_nas_first_req(instance_t instance, ngap_nas_first_req_t *UEf
if
(
amf_desc_p
)
{
if
(
amf_desc_p
)
{
NGAP_INFO
(
NGAP_INFO
(
"
[gNB %ld]
Chose AMF '%s' (assoc_id %d) through S-TMSI AMFSI %d and selected PLMN Identity index %d MCC %d MNC %d
\n
"
,
"
UE %d:
Chose AMF '%s' (assoc_id %d) through S-TMSI AMFSI %d and selected PLMN Identity index %d MCC %d MNC %d
\n
"
,
instance
,
UEfirstReq
->
gNB_ue_ngap_id
,
amf_desc_p
->
amf_name
,
amf_desc_p
->
amf_name
,
amf_desc_p
->
assoc_id
,
amf_desc_p
->
assoc_id
,
UEfirstReq
->
ue_identity
.
s_tmsi
.
amf_set_id
,
UEfirstReq
->
ue_identity
.
s_tmsi
.
amf_set_id
,
...
@@ -134,8 +134,8 @@ int ngap_gNB_handle_nas_first_req(instance_t instance, ngap_nas_first_req_t *UEf
...
@@ -134,8 +134,8 @@ int ngap_gNB_handle_nas_first_req(instance_t instance, ngap_nas_first_req_t *UEf
amf_desc_p
=
ngap_gNB_nnsf_select_amf_by_plmn_id
(
instance_p
,
UEfirstReq
->
establishment_cause
,
UEfirstReq
->
selected_plmn_identity
);
amf_desc_p
=
ngap_gNB_nnsf_select_amf_by_plmn_id
(
instance_p
,
UEfirstReq
->
establishment_cause
,
UEfirstReq
->
selected_plmn_identity
);
if
(
amf_desc_p
)
{
if
(
amf_desc_p
)
{
NGAP_INFO
(
"
[gNB %ld]
Chose AMF '%s' (assoc_id %d) through selected PLMN Identity index %d MCC %d MNC %d
\n
"
,
NGAP_INFO
(
"
UE %d:
Chose AMF '%s' (assoc_id %d) through selected PLMN Identity index %d MCC %d MNC %d
\n
"
,
instance
,
UEfirstReq
->
gNB_ue_ngap_id
,
amf_desc_p
->
amf_name
,
amf_desc_p
->
amf_name
,
amf_desc_p
->
assoc_id
,
amf_desc_p
->
assoc_id
,
UEfirstReq
->
selected_plmn_identity
,
UEfirstReq
->
selected_plmn_identity
,
...
@@ -153,7 +153,7 @@ int ngap_gNB_handle_nas_first_req(instance_t instance, ngap_nas_first_req_t *UEf
...
@@ -153,7 +153,7 @@ int ngap_gNB_handle_nas_first_req(instance_t instance, ngap_nas_first_req_t *UEf
amf_desc_p
=
ngap_gNB_nnsf_select_amf
(
instance_p
,
UEfirstReq
->
establishment_cause
);
amf_desc_p
=
ngap_gNB_nnsf_select_amf
(
instance_p
,
UEfirstReq
->
establishment_cause
);
if
(
amf_desc_p
)
{
if
(
amf_desc_p
)
{
NGAP_INFO
(
"
[gNB %ld] Chose AMF '%s' (assoc_id %d) through highest relative capacity
\n
"
,
instance
,
amf_desc_p
->
amf_name
,
amf_desc_p
->
assoc_id
);
NGAP_INFO
(
"
UE %d: Chose AMF '%s' (assoc_id %d) through highest relative capacity
\n
"
,
UEfirstReq
->
gNB_ue_ngap_id
,
amf_desc_p
->
amf_name
,
amf_desc_p
->
assoc_id
);
}
}
}
}
...
...
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