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
wangjie
OpenXG-RAN
Commits
c6d6a424
Commit
c6d6a424
authored
Sep 15, 2020
by
zhenghuangkun
Committed by
Noboru Kobayashi
Oct 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UEContextReleaseComplete
Add UEContextReleaseRequest
parent
5217b764
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
20 deletions
+19
-20
openair3/NGAP/ngap_gNB_context_management_procedures.c
openair3/NGAP/ngap_gNB_context_management_procedures.c
+13
-14
openair3/NGAP/ngap_gNB_handlers.c
openair3/NGAP/ngap_gNB_handlers.c
+6
-6
No files found.
openair3/NGAP/ngap_gNB_context_management_procedures.c
View file @
c6d6a424
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
int
ngap_ue_context_release_complete
(
instance_t
instance
,
int
ngap_ue_context_release_complete
(
instance_t
instance
,
ngap_ue_release_complete_t
*
ue_release_complete_p
)
ngap_ue_release_complete_t
*
ue_release_complete_p
)
{
{
#if 0
ngap_gNB_instance_t
*
ngap_gNB_instance_p
=
NULL
;
ngap_gNB_instance_t
*
ngap_gNB_instance_p
=
NULL
;
struct
ngap_gNB_ue_context_s
*
ue_context_p
=
NULL
;
struct
ngap_gNB_ue_context_s
*
ue_context_p
=
NULL
;
NGAP_NGAP_PDU_t
pdu
;
NGAP_NGAP_PDU_t
pdu
;
...
@@ -94,15 +94,15 @@ int ngap_ue_context_release_complete(instance_t instance,
...
@@ -94,15 +94,15 @@ int ngap_ue_context_release_complete(instance_t instance,
ie
->
id
=
NGAP_ProtocolIE_ID_id_AMF_UE_NGAP_ID
;
ie
->
id
=
NGAP_ProtocolIE_ID_id_AMF_UE_NGAP_ID
;
ie
->
criticality
=
NGAP_Criticality_ignore
;
ie
->
criticality
=
NGAP_Criticality_ignore
;
ie
->
value
.
present
=
NGAP_UEContextReleaseComplete_IEs__value_PR_AMF_UE_NGAP_ID
;
ie
->
value
.
present
=
NGAP_UEContextReleaseComplete_IEs__value_PR_AMF_UE_NGAP_ID
;
ie->value.choice.AMF_UE_NGAP_ID = ue_context_p->amf_ue_ngap_id
;
asn_uint642INTEGER
(
&
ie
->
value
.
choice
.
AMF_UE_NGAP_ID
,
ue_context_p
->
amf_ue_ngap_id
)
;
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
/* mandatory */
/* mandatory */
ie
=
(
NGAP_UEContextReleaseComplete_IEs_t
*
)
calloc
(
1
,
sizeof
(
NGAP_UEContextReleaseComplete_IEs_t
));
ie
=
(
NGAP_UEContextReleaseComplete_IEs_t
*
)
calloc
(
1
,
sizeof
(
NGAP_UEContextReleaseComplete_IEs_t
));
ie->id = NGAP_ProtocolIE_ID_id_
gNB
_UE_NGAP_ID;
ie
->
id
=
NGAP_ProtocolIE_ID_id_
RAN
_UE_NGAP_ID
;
ie
->
criticality
=
NGAP_Criticality_ignore
;
ie
->
criticality
=
NGAP_Criticality_ignore
;
ie->value.present = NGAP_UEContextReleaseComplete_IEs__value_PR_
GNB
_UE_NGAP_ID;
ie
->
value
.
present
=
NGAP_UEContextReleaseComplete_IEs__value_PR_
RAN
_UE_NGAP_ID
;
ie->value.choice.
GNB
_UE_NGAP_ID = ue_release_complete_p->gNB_ue_ngap_id;
ie
->
value
.
choice
.
RAN
_UE_NGAP_ID
=
ue_release_complete_p
->
gNB_ue_ngap_id
;
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
...
@@ -117,7 +117,7 @@ int ngap_ue_context_release_complete(instance_t instance,
...
@@ -117,7 +117,7 @@ int ngap_ue_context_release_complete(instance_t instance,
MSC_NGAP_AMF
,
MSC_NGAP_AMF
,
buffer
,
buffer
,
length
,
length
,
MSC_AS_TIME_FMT" UEContextRelease successfulOutcome gNB_ue_ngap_id %u amf_ue_ngap_id %u",
MSC_AS_TIME_FMT
" UEContextRelease successfulOutcome gNB_ue_ngap_id %u amf_ue_ngap_id %
l
u"
,
0
,
0
,
//MSC_AS_TIME_ARGS(ctxt_pP),
0
,
0
,
//MSC_AS_TIME_ARGS(ctxt_pP),
ue_release_complete_p
->
gNB_ue_ngap_id
,
ue_release_complete_p
->
gNB_ue_ngap_id
,
ue_context_p
->
amf_ue_ngap_id
);
ue_context_p
->
amf_ue_ngap_id
);
...
@@ -146,7 +146,7 @@ int ngap_ue_context_release_complete(instance_t instance,
...
@@ -146,7 +146,7 @@ int ngap_ue_context_release_complete(instance_t instance,
ue_context_p->gNB_ue_ngap_id, ue_context_p->amf_ue_ngap_id,
ue_context_p->gNB_ue_ngap_id, ue_context_p->amf_ue_ngap_id,
ue_context_p->ue_state);
ue_context_p->ue_state);
}*/
}*/
#endif
return
0
;
return
0
;
}
}
...
@@ -154,7 +154,6 @@ int ngap_ue_context_release_complete(instance_t instance,
...
@@ -154,7 +154,6 @@ int ngap_ue_context_release_complete(instance_t instance,
int
ngap_ue_context_release_req
(
instance_t
instance
,
int
ngap_ue_context_release_req
(
instance_t
instance
,
ngap_ue_release_req_t
*
ue_release_req_p
)
ngap_ue_release_req_t
*
ue_release_req_p
)
{
{
#if 0
ngap_gNB_instance_t
*
ngap_gNB_instance_p
=
NULL
;
ngap_gNB_instance_t
*
ngap_gNB_instance_p
=
NULL
;
struct
ngap_gNB_ue_context_s
*
ue_context_p
=
NULL
;
struct
ngap_gNB_ue_context_s
*
ue_context_p
=
NULL
;
NGAP_NGAP_PDU_t
pdu
;
NGAP_NGAP_PDU_t
pdu
;
...
@@ -189,15 +188,15 @@ int ngap_ue_context_release_req(instance_t instance,
...
@@ -189,15 +188,15 @@ int ngap_ue_context_release_req(instance_t instance,
ie
->
id
=
NGAP_ProtocolIE_ID_id_AMF_UE_NGAP_ID
;
ie
->
id
=
NGAP_ProtocolIE_ID_id_AMF_UE_NGAP_ID
;
ie
->
criticality
=
NGAP_Criticality_reject
;
ie
->
criticality
=
NGAP_Criticality_reject
;
ie
->
value
.
present
=
NGAP_UEContextReleaseRequest_IEs__value_PR_AMF_UE_NGAP_ID
;
ie
->
value
.
present
=
NGAP_UEContextReleaseRequest_IEs__value_PR_AMF_UE_NGAP_ID
;
ie->value.choice.AMF_UE_NGAP_ID = ue_context_p->amf_ue_ngap_id
;
asn_uint642INTEGER
(
&
ie
->
value
.
choice
.
AMF_UE_NGAP_ID
,
ue_context_p
->
amf_ue_ngap_id
)
;
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
/* mandatory */
/* mandatory */
ie
=
(
NGAP_UEContextReleaseRequest_IEs_t
*
)
calloc
(
1
,
sizeof
(
NGAP_UEContextReleaseRequest_IEs_t
));
ie
=
(
NGAP_UEContextReleaseRequest_IEs_t
*
)
calloc
(
1
,
sizeof
(
NGAP_UEContextReleaseRequest_IEs_t
));
ie->id = NGAP_ProtocolIE_ID_id_
gNB
_UE_NGAP_ID;
ie
->
id
=
NGAP_ProtocolIE_ID_id_
RAN
_UE_NGAP_ID
;
ie
->
criticality
=
NGAP_Criticality_reject
;
ie
->
criticality
=
NGAP_Criticality_reject
;
ie->value.present = NGAP_UEContextReleaseRequest_IEs__value_PR_
GNB
_UE_NGAP_ID;
ie
->
value
.
present
=
NGAP_UEContextReleaseRequest_IEs__value_PR_
RAN
_UE_NGAP_ID
;
ie->value.choice.
GNB
_UE_NGAP_ID = ue_release_req_p->gNB_ue_ngap_id;
ie
->
value
.
choice
.
RAN
_UE_NGAP_ID
=
ue_release_req_p
->
gNB_ue_ngap_id
;
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
/* mandatory */
/* mandatory */
...
@@ -253,7 +252,7 @@ int ngap_ue_context_release_req(instance_t instance,
...
@@ -253,7 +252,7 @@ int ngap_ue_context_release_req(instance_t instance,
MSC_NGAP_AMF
,
MSC_NGAP_AMF
,
buffer
,
buffer
,
length
,
length
,
MSC_AS_TIME_FMT" UEContextReleaseRequest initiatingMessage gNB_ue_ngap_id %u amf_ue_ngap_id %u",
MSC_AS_TIME_FMT
" UEContextReleaseRequest initiatingMessage gNB_ue_ngap_id %u amf_ue_ngap_id %
l
u"
,
0
,
0
,
//MSC_AS_TIME_ARGS(ctxt_pP),
0
,
0
,
//MSC_AS_TIME_ARGS(ctxt_pP),
ue_release_req_p
->
gNB_ue_ngap_id
,
ue_release_req_p
->
gNB_ue_ngap_id
,
ue_context_p
->
amf_ue_ngap_id
);
ue_context_p
->
amf_ue_ngap_id
);
...
@@ -262,7 +261,7 @@ int ngap_ue_context_release_req(instance_t instance,
...
@@ -262,7 +261,7 @@ int ngap_ue_context_release_req(instance_t instance,
ngap_gNB_itti_send_sctp_data_req
(
ngap_gNB_instance_p
->
instance
,
ngap_gNB_itti_send_sctp_data_req
(
ngap_gNB_instance_p
->
instance
,
ue_context_p
->
amf_ref
->
assoc_id
,
buffer
,
ue_context_p
->
amf_ref
->
assoc_id
,
buffer
,
length
,
ue_context_p
->
tx_stream
);
length
,
ue_context_p
->
tx_stream
);
#endif
return
0
;
return
0
;
}
}
openair3/NGAP/ngap_gNB_handlers.c
View file @
c6d6a424
...
@@ -430,9 +430,9 @@ int ngap_gNB_handle_ng_setup_response(uint32_t assoc_id,
...
@@ -430,9 +430,9 @@ int ngap_gNB_handle_ng_setup_response(uint32_t assoc_id,
if
(
slice_support_item_p
->
s_NSSAI
.
sD
!=
NULL
)
{
if
(
slice_support_item_p
->
s_NSSAI
.
sD
!=
NULL
)
{
new_slice_support_p
->
sD_flag
=
1
;
new_slice_support_p
->
sD_flag
=
1
;
OCTET_STRING_TO_INT8
(
&
slice_support_item_p
->
s_NSSAI
.
sD
[
0
],
new_slice_support_p
->
sD
[
0
])
;
new_slice_support_p
->
sD
[
0
]
=
slice_support_item_p
->
s_NSSAI
.
sD
->
buf
[
0
]
;
OCTET_STRING_TO_INT8
(
&
slice_support_item_p
->
s_NSSAI
.
sD
[
1
],
new_slice_support_p
->
sD
[
1
])
;
new_slice_support_p
->
sD
[
1
]
=
slice_support_item_p
->
s_NSSAI
.
sD
->
buf
[
1
]
;
OCTET_STRING_TO_INT8
(
&
slice_support_item_p
->
s_NSSAI
.
sD
[
2
],
new_slice_support_p
->
sD
[
2
])
;
new_slice_support_p
->
sD
[
2
]
=
slice_support_item_p
->
s_NSSAI
.
sD
->
buf
[
2
]
;
}
}
STAILQ_INSERT_TAIL
(
&
new_plmn_support_p
->
slice_supports
,
new_slice_support_p
,
next
);
STAILQ_INSERT_TAIL
(
&
new_plmn_support_p
->
slice_supports
,
new_slice_support_p
,
next
);
}
}
...
@@ -1034,9 +1034,9 @@ int ngap_gNB_handle_initial_context_request(uint32_t assoc_id,
...
@@ -1034,9 +1034,9 @@ int ngap_gNB_handle_initial_context_request(uint32_t assoc_id,
if
(
allow_nssai_item_p
->
s_NSSAI
.
sD
!=
NULL
)
{
if
(
allow_nssai_item_p
->
s_NSSAI
.
sD
!=
NULL
)
{
NGAP_INITIAL_CONTEXT_SETUP_REQ
(
message_p
).
allowed_nssai
[
i
].
sD_flag
=
1
;
NGAP_INITIAL_CONTEXT_SETUP_REQ
(
message_p
).
allowed_nssai
[
i
].
sD_flag
=
1
;
OCTET_STRING_TO_INT8
(
&
allow_nssai_item_p
->
s_NSSAI
.
sD
[
0
],
NGAP_INITIAL_CONTEXT_SETUP_REQ
(
message_p
).
allowed_nssai
[
i
].
sD
[
0
])
;
NGAP_INITIAL_CONTEXT_SETUP_REQ
(
message_p
).
allowed_nssai
[
i
].
sD
[
0
]
=
allow_nssai_item_p
->
s_NSSAI
.
sD
->
buf
[
0
]
;
OCTET_STRING_TO_INT8
(
&
allow_nssai_item_p
->
s_NSSAI
.
sD
[
1
],
NGAP_INITIAL_CONTEXT_SETUP_REQ
(
message_p
).
allowed_nssai
[
i
].
sD
[
1
])
;
NGAP_INITIAL_CONTEXT_SETUP_REQ
(
message_p
).
allowed_nssai
[
i
].
sD
[
1
]
=
allow_nssai_item_p
->
s_NSSAI
.
sD
->
buf
[
1
]
;
OCTET_STRING_TO_INT8
(
&
allow_nssai_item_p
->
s_NSSAI
.
sD
[
2
],
NGAP_INITIAL_CONTEXT_SETUP_REQ
(
message_p
).
allowed_nssai
[
i
].
sD
[
2
])
;
NGAP_INITIAL_CONTEXT_SETUP_REQ
(
message_p
).
allowed_nssai
[
i
].
sD
[
2
]
=
allow_nssai_item_p
->
s_NSSAI
.
sD
->
buf
[
2
]
;
}
}
}
}
}
else
{
/* ie != NULL */
}
else
{
/* ie != NULL */
...
...
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