Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
0c5b5f8d
Commit
0c5b5f8d
authored
10 years ago
by
Lionel Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5880
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
bd4a79da
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair-cn/COMMON/s1ap_messages_def.h
+1
-0
1 addition, 0 deletions
openair-cn/COMMON/s1ap_messages_def.h
openair-cn/S1AP/s1ap_eNB_handlers.c
+40
-8
40 additions, 8 deletions
openair-cn/S1AP/s1ap_eNB_handlers.c
with
41 additions
and
8 deletions
openair-cn/COMMON/s1ap_messages_def.h
+
1
−
0
View file @
0c5b5f8d
...
...
@@ -37,6 +37,7 @@ MESSAGE_DEF(S1AP_DOWNLINK_NAS_LOG , MESSAGE_PRIORITY_MED, IttiMsgText
MESSAGE_DEF
(
S1AP_S1_SETUP_LOG
,
MESSAGE_PRIORITY_MED
,
IttiMsgText
,
s1ap_s1_setup_log
)
MESSAGE_DEF
(
S1AP_INITIAL_UE_MESSAGE_LOG
,
MESSAGE_PRIORITY_MED
,
IttiMsgText
,
s1ap_initial_ue_message_log
)
MESSAGE_DEF
(
S1AP_UE_CONTEXT_RELEASE_REQ_LOG
,
MESSAGE_PRIORITY_MED
,
IttiMsgText
,
s1ap_ue_context_release_req_log
)
MESSAGE_DEF
(
S1AP_UE_CONTEXT_RELEASE_COMMAND_LOG
,
MESSAGE_PRIORITY_MED
,
IttiMsgText
,
s1ap_ue_context_release_command_log
)
MESSAGE_DEF
(
S1AP_UE_CONTEXT_RELEASE_LOG
,
MESSAGE_PRIORITY_MED
,
IttiMsgText
,
s1ap_ue_context_release_log
)
MESSAGE_DEF
(
S1AP_UE_CAPABILITIES_IND
,
MESSAGE_PRIORITY_MED
,
s1ap_ue_cap_ind_t
,
s1ap_ue_cap_ind
)
...
...
This diff is collapsed.
Click to expand it.
openair-cn/S1AP/s1ap_eNB_handlers.c
+
40
−
8
View file @
0c5b5f8d
...
...
@@ -72,7 +72,7 @@ int s1ap_eNB_handle_initial_context_request(uint32_t assoc_id,
struct
s1ap_message_s
*
message_p
);
static
int
s1ap_eNB_handle_ue_context_release
(
uint32_t
assoc_id
,
int
s1ap_eNB_handle_ue_context_release
_command
(
uint32_t
assoc_id
,
uint32_t
stream
,
struct
s1ap_message_s
*
s1ap_message_p
);
...
...
@@ -101,7 +101,7 @@ s1ap_message_decoded_callback messages_callback[][3] = {
{
0
,
0
,
0
},
/* UplinkS1cdma2000tunneling */
{
0
,
0
,
0
},
/* UEContextModification */
{
0
,
0
,
0
},
/* UECapabilityInfoIndication */
{
s1ap_eNB_handle_ue_context_release
,
0
,
0
},
/* UEContextRelease */
{
s1ap_eNB_handle_ue_context_release
_command
,
0
,
0
},
/* UEContextRelease */
{
0
,
0
,
0
},
/* eNBStatusTransfer */
{
0
,
0
,
0
},
/* MMEStatusTransfer */
{
s1ap_eNB_handle_deactivate_trace
,
0
,
0
},
/* DeactivateTrace */
...
...
@@ -519,12 +519,10 @@ int s1ap_eNB_handle_initial_context_request(uint32_t assoc_id,
static
int
s1ap_eNB_handle_ue_context_release
(
uint32_t
assoc_id
,
int
s1ap_eNB_handle_ue_context_release
_command
(
uint32_t
assoc_id
,
uint32_t
stream
,
struct
s1ap_message_s
*
s1ap_message_p
)
{
int
i
;
s1ap_eNB_mme_data_t
*
mme_desc_p
=
NULL
;
s1ap_eNB_ue_context_t
*
ue_desc_p
=
NULL
;
MessageDef
*
message_p
=
NULL
;
...
...
@@ -540,8 +538,42 @@ int s1ap_eNB_handle_ue_context_release(uint32_t assoc_id,
return
-
1
;
}
#warning "TODO"
S1AP_ERROR
(
"s1ap_eNB_handle_ue_context_release to be continued
\n
"
);
return
0
;
S1ap_MME_UE_S1AP_ID_t
mme_ue_s1ap_id
;
S1ap_ENB_UE_S1AP_ID_t
enb_ue_s1ap_id
;
switch
(
ueContextReleaseCommand_p
->
uE_S1AP_IDs
.
present
)
{
case
S1ap_UE_S1AP_IDs_PR_uE_S1AP_ID_pair
:
enb_ue_s1ap_id
=
ueContextReleaseCommand_p
->
uE_S1AP_IDs
.
choice
.
uE_S1AP_ID_pair
.
eNB_UE_S1AP_ID
;
mme_ue_s1ap_id
=
ueContextReleaseCommand_p
->
uE_S1AP_IDs
.
choice
.
uE_S1AP_ID_pair
.
mME_UE_S1AP_ID
;
if
((
ue_desc_p
=
s1ap_eNB_get_ue_context
(
mme_desc_p
->
s1ap_eNB_instance
,
enb_ue_s1ap_id
))
==
NULL
)
{
S1AP_ERROR
(
"[SCTP %d] Received UE context release command for non "
"existing UE context 0x%06x
\n
"
,
assoc_id
,
enb_ue_s1ap_id
);
/*MessageDef *msg_complete_p;
msg_complete_p = itti_alloc_new_message(TASK_RRC_ENB, S1AP_UE_CONTEXT_RELEASE_COMPLETE);
S1AP_UE_CONTEXT_RELEASE_COMPLETE(msg_complete_p).eNB_ue_s1ap_id = enb_ue_s1ap_id;
itti_send_msg_to_task(TASK_S1AP, ue_desc_p->eNB_instance->instance <=> 0, msg_complete_p);
*/
return
-
1
;
}
else
{
message_p
=
itti_alloc_new_message
(
TASK_S1AP
,
S1AP_UE_CONTEXT_RELEASE_COMMAND
);
S1AP_UE_CONTEXT_RELEASE_COMMAND
(
message_p
).
eNB_ue_s1ap_id
=
enb_ue_s1ap_id
;
itti_send_msg_to_task
(
TASK_RRC_ENB
,
ue_desc_p
->
eNB_instance
->
instance
,
message_p
);
return
0
;
}
break
;
#warning "TODO mapping mme_ue_s1ap_id enb_ue_s1ap_id?"
case
S1ap_UE_S1AP_IDs_PR_mME_UE_S1AP_ID
:
mme_ue_s1ap_id
=
ueContextReleaseCommand_p
->
uE_S1AP_IDs
.
choice
.
mME_UE_S1AP_ID
;
S1AP_ERROR
(
"TO DO mapping mme_ue_s1ap_id enb_ue_s1ap_id"
);
case
S1ap_UE_S1AP_IDs_PR_NOTHING
:
default:
S1AP_ERROR
(
"S1AP_UE_CONTEXT_RELEASE_COMMAND not processed, missing info elements"
);
return
-
1
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment