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
canghaiwuhen
OpenXG-RAN
Commits
e389b798
Commit
e389b798
authored
Dec 07, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
F1 handlers: Improve error message if RNTI obtained through CU/DU ID differ
parent
58850e3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
13 deletions
+17
-13
openair2/F1AP/f1ap_cu_ue_context_management.c
openair2/F1AP/f1ap_cu_ue_context_management.c
+12
-10
openair2/F1AP/f1ap_du_ue_context_management.c
openair2/F1AP/f1ap_du_ue_context_management.c
+5
-3
No files found.
openair2/F1AP/f1ap_cu_ue_context_management.c
View file @
e389b798
...
@@ -775,7 +775,6 @@ int CU_handle_UE_CONTEXT_RELEASE_REQUEST(instance_t instance,
...
@@ -775,7 +775,6 @@ int CU_handle_UE_CONTEXT_RELEASE_REQUEST(instance_t instance,
F1AP_F1AP_PDU_t
*
pdu
)
{
F1AP_F1AP_PDU_t
*
pdu
)
{
F1AP_UEContextReleaseRequest_t
*
container
;
F1AP_UEContextReleaseRequest_t
*
container
;
F1AP_UEContextReleaseRequestIEs_t
*
ie
;
F1AP_UEContextReleaseRequestIEs_t
*
ie
;
rnti_t
rnti
;
DevAssert
(
pdu
);
DevAssert
(
pdu
);
...
@@ -783,14 +782,16 @@ int CU_handle_UE_CONTEXT_RELEASE_REQUEST(instance_t instance,
...
@@ -783,14 +782,16 @@ int CU_handle_UE_CONTEXT_RELEASE_REQUEST(instance_t instance,
/* GNB_CU_UE_F1AP_ID */
/* GNB_CU_UE_F1AP_ID */
F1AP_FIND_PROTOCOLIE_BY_ID
(
F1AP_UEContextReleaseRequestIEs_t
,
ie
,
container
,
F1AP_FIND_PROTOCOLIE_BY_ID
(
F1AP_UEContextReleaseRequestIEs_t
,
ie
,
container
,
F1AP_ProtocolIE_ID_id_gNB_CU_UE_F1AP_ID
,
true
);
F1AP_ProtocolIE_ID_id_gNB_CU_UE_F1AP_ID
,
true
);
rnti
=
f1ap_get_rnti_by_cu_id
(
&
f1ap_cu_ue
[
instance
],
ie
->
value
.
choice
.
GNB_CU_UE_F1AP_ID
);
const
rnti_t
rnti
=
f1ap_get_rnti_by_cu_id
(
&
f1ap_cu_ue
[
instance
],
ie
->
value
.
choice
.
GNB_CU_UE_F1AP_ID
);
/* GNB_DU_UE_F1AP_ID */
/* GNB_DU_UE_F1AP_ID */
F1AP_FIND_PROTOCOLIE_BY_ID
(
F1AP_UEContextReleaseRequestIEs_t
,
ie
,
container
,
F1AP_FIND_PROTOCOLIE_BY_ID
(
F1AP_UEContextReleaseRequestIEs_t
,
ie
,
container
,
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
,
true
);
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
,
true
);
AssertFatal
(
rnti
==
f1ap_get_rnti_by_du_id
(
&
f1ap_cu_ue
[
instance
],
const
rnti_t
rnti2
=
f1ap_get_rnti_by_du_id
(
&
f1ap_cu_ue
[
instance
],
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
),
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
);
"RNTI obtained through DU ID is different from CU ID
\n
"
);
AssertFatal
(
rnti
==
rnti2
,
"RNTI obtained through DU ID (%x) is different from CU ID (%x)
\n
"
,
rnti2
,
rnti
);
/* Cause */
/* Cause */
/* We don't care for the moment
/* We don't care for the moment
...
@@ -920,7 +921,6 @@ int CU_handle_UE_CONTEXT_RELEASE_COMPLETE(instance_t instance,
...
@@ -920,7 +921,6 @@ int CU_handle_UE_CONTEXT_RELEASE_COMPLETE(instance_t instance,
F1AP_F1AP_PDU_t
*
pdu
)
{
F1AP_F1AP_PDU_t
*
pdu
)
{
F1AP_UEContextReleaseComplete_t
*
container
;
F1AP_UEContextReleaseComplete_t
*
container
;
F1AP_UEContextReleaseCompleteIEs_t
*
ie
;
F1AP_UEContextReleaseCompleteIEs_t
*
ie
;
rnti_t
rnti
;
DevAssert
(
pdu
);
DevAssert
(
pdu
);
...
@@ -928,14 +928,16 @@ int CU_handle_UE_CONTEXT_RELEASE_COMPLETE(instance_t instance,
...
@@ -928,14 +928,16 @@ int CU_handle_UE_CONTEXT_RELEASE_COMPLETE(instance_t instance,
/* GNB_CU_UE_F1AP_ID */
/* GNB_CU_UE_F1AP_ID */
F1AP_FIND_PROTOCOLIE_BY_ID
(
F1AP_UEContextReleaseCompleteIEs_t
,
ie
,
container
,
F1AP_FIND_PROTOCOLIE_BY_ID
(
F1AP_UEContextReleaseCompleteIEs_t
,
ie
,
container
,
F1AP_ProtocolIE_ID_id_gNB_CU_UE_F1AP_ID
,
true
);
F1AP_ProtocolIE_ID_id_gNB_CU_UE_F1AP_ID
,
true
);
rnti
=
f1ap_get_rnti_by_cu_id
(
&
f1ap_cu_ue
[
instance
],
ie
->
value
.
choice
.
GNB_CU_UE_F1AP_ID
);
const
rnti_t
rnti
=
f1ap_get_rnti_by_cu_id
(
&
f1ap_cu_ue
[
instance
],
ie
->
value
.
choice
.
GNB_CU_UE_F1AP_ID
);
/* GNB_DU_UE_F1AP_ID */
/* GNB_DU_UE_F1AP_ID */
F1AP_FIND_PROTOCOLIE_BY_ID
(
F1AP_UEContextReleaseCompleteIEs_t
,
ie
,
container
,
F1AP_FIND_PROTOCOLIE_BY_ID
(
F1AP_UEContextReleaseCompleteIEs_t
,
ie
,
container
,
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
,
true
);
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
,
true
);
AssertFatal
(
rnti
==
f1ap_get_rnti_by_du_id
(
&
f1ap_cu_ue
[
instance
],
const
rnti_t
rnti2
=
f1ap_get_rnti_by_du_id
(
&
f1ap_cu_ue
[
instance
],
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
),
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
);
"RNTI obtained through DU ID is different from CU ID
\n
"
);
AssertFatal
(
rnti
==
rnti2
,
"RNTI obtained through DU ID (%x) is different from CU ID (%x)
\n
"
,
rnti2
,
rnti
);
/* Optional*/
/* Optional*/
/* CriticalityDiagnostics */
/* CriticalityDiagnostics */
...
...
openair2/F1AP/f1ap_du_ue_context_management.c
View file @
e389b798
...
@@ -669,9 +669,11 @@ int DU_handle_UE_CONTEXT_RELEASE_COMMAND(instance_t instance,
...
@@ -669,9 +669,11 @@ int DU_handle_UE_CONTEXT_RELEASE_COMMAND(instance_t instance,
/* GNB_DU_UE_F1AP_ID */
/* GNB_DU_UE_F1AP_ID */
F1AP_FIND_PROTOCOLIE_BY_ID
(
F1AP_UEContextReleaseCommandIEs_t
,
ie
,
container
,
F1AP_FIND_PROTOCOLIE_BY_ID
(
F1AP_UEContextReleaseCommandIEs_t
,
ie
,
container
,
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
,
true
);
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
,
true
);
AssertFatal
(
ctxt
.
rnti
==
f1ap_get_rnti_by_du_id
(
&
f1ap_du_ue
[
instance
],
const
rnti_t
rnti
=
f1ap_get_rnti_by_du_id
(
&
f1ap_du_ue
[
instance
],
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
),
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
);
"RNTI obtained through DU ID is different from CU ID
\n
"
);
AssertFatal
(
ctxt
.
rnti
==
rnti
,
"RNTI obtained through DU ID (%x) is different from CU ID (%x)
\n
"
,
rnti
,
ctxt
.
rnti
);
/* We don't need the Cause */
/* We don't need the Cause */
...
...
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