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
8d34217c
Commit
8d34217c
authored
Jul 27, 2016
by
Frédéric Leroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE: add user instance to itti messages
parent
556d5a65
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
16 deletions
+20
-16
openair3/NAS/UE/EMM/SAP/emm_as.c
openair3/NAS/UE/EMM/SAP/emm_as.c
+8
-4
openair3/NAS/UE/nas_itti_messaging.c
openair3/NAS/UE/nas_itti_messaging.c
+8
-8
openair3/NAS/UE/nas_itti_messaging.h
openair3/NAS/UE/nas_itti_messaging.h
+4
-4
No files found.
openair3/NAS/UE/EMM/SAP/emm_as.c
View file @
8d34217c
...
@@ -991,7 +991,8 @@ static int _emm_as_send(const nas_user_t *user, const emm_as_t *msg)
...
@@ -991,7 +991,8 @@ static int _emm_as_send(const nas_user_t *user, const emm_as_t *msg)
case
AS_CELL_INFO_REQ
:
{
case
AS_CELL_INFO_REQ
:
{
nas_itti_cell_info_req
(
nas_itti_cell_info_req
(
as_msg
.
msg
.
cell_info_req
.
plmnID
,
as_msg
.
msg
.
cell_info_req
.
plmnID
,
as_msg
.
msg
.
cell_info_req
.
rat
);
as_msg
.
msg
.
cell_info_req
.
rat
,
user
->
ueid
);
LOG_FUNC_RETURN
(
RETURNok
);
LOG_FUNC_RETURN
(
RETURNok
);
}
}
break
;
break
;
...
@@ -1003,7 +1004,8 @@ static int _emm_as_send(const nas_user_t *user, const emm_as_t *msg)
...
@@ -1003,7 +1004,8 @@ static int _emm_as_send(const nas_user_t *user, const emm_as_t *msg)
as_msg
.
msg
.
nas_establish_req
.
s_tmsi
,
as_msg
.
msg
.
nas_establish_req
.
s_tmsi
,
as_msg
.
msg
.
nas_establish_req
.
plmnID
,
as_msg
.
msg
.
nas_establish_req
.
plmnID
,
as_msg
.
msg
.
nas_establish_req
.
initialNasMsg
.
data
,
as_msg
.
msg
.
nas_establish_req
.
initialNasMsg
.
data
,
as_msg
.
msg
.
nas_establish_req
.
initialNasMsg
.
length
);
as_msg
.
msg
.
nas_establish_req
.
initialNasMsg
.
length
,
user
->
ueid
);
LOG_FUNC_RETURN
(
RETURNok
);
LOG_FUNC_RETURN
(
RETURNok
);
}
}
break
;
break
;
...
@@ -1012,7 +1014,8 @@ static int _emm_as_send(const nas_user_t *user, const emm_as_t *msg)
...
@@ -1012,7 +1014,8 @@ static int _emm_as_send(const nas_user_t *user, const emm_as_t *msg)
nas_itti_ul_data_req
(
nas_itti_ul_data_req
(
as_msg
.
msg
.
ul_info_transfer_req
.
UEid
,
as_msg
.
msg
.
ul_info_transfer_req
.
UEid
,
as_msg
.
msg
.
ul_info_transfer_req
.
nasMsg
.
data
,
as_msg
.
msg
.
ul_info_transfer_req
.
nasMsg
.
data
,
as_msg
.
msg
.
ul_info_transfer_req
.
nasMsg
.
length
);
as_msg
.
msg
.
ul_info_transfer_req
.
nasMsg
.
length
,
user
->
ueid
);
LOG_FUNC_RETURN
(
RETURNok
);
LOG_FUNC_RETURN
(
RETURNok
);
}
}
break
;
break
;
...
@@ -1021,7 +1024,8 @@ static int _emm_as_send(const nas_user_t *user, const emm_as_t *msg)
...
@@ -1021,7 +1024,8 @@ static int _emm_as_send(const nas_user_t *user, const emm_as_t *msg)
nas_itti_rab_establish_rsp
(
nas_itti_rab_establish_rsp
(
as_msg
.
msg
.
rab_establish_rsp
.
s_tmsi
,
as_msg
.
msg
.
rab_establish_rsp
.
s_tmsi
,
as_msg
.
msg
.
rab_establish_rsp
.
rabID
,
as_msg
.
msg
.
rab_establish_rsp
.
rabID
,
as_msg
.
msg
.
rab_establish_rsp
.
errCode
);
as_msg
.
msg
.
rab_establish_rsp
.
errCode
,
user
->
ueid
);
LOG_FUNC_RETURN
(
RETURNok
);
LOG_FUNC_RETURN
(
RETURNok
);
}
}
break
;
break
;
...
...
openair3/NAS/UE/nas_itti_messaging.c
View file @
8d34217c
...
@@ -213,7 +213,7 @@ int nas_itti_kenb_refresh_req(const Byte_t kenb[32])
...
@@ -213,7 +213,7 @@ int nas_itti_kenb_refresh_req(const Byte_t kenb[32])
return
itti_send_msg_to_task
(
TASK_RRC_UE
,
NB_eNB_INST
+
0
/* TODO to be virtualized */
,
message_p
);
return
itti_send_msg_to_task
(
TASK_RRC_UE
,
NB_eNB_INST
+
0
/* TODO to be virtualized */
,
message_p
);
}
}
int
nas_itti_cell_info_req
(
const
plmn_t
plmnID
,
const
Byte_t
rat
)
int
nas_itti_cell_info_req
(
const
plmn_t
plmnID
,
const
Byte_t
rat
,
int
user_id
)
{
{
MessageDef
*
message_p
;
MessageDef
*
message_p
;
...
@@ -230,10 +230,10 @@ int nas_itti_cell_info_req(const plmn_t plmnID, const Byte_t rat)
...
@@ -230,10 +230,10 @@ int nas_itti_cell_info_req(const plmn_t plmnID, const Byte_t rat)
plmnID
.
MCCdigit1
,
plmnID
.
MCCdigit2
,
plmnID
.
MCCdigit3
,
plmnID
.
MCCdigit1
,
plmnID
.
MCCdigit2
,
plmnID
.
MCCdigit3
,
plmnID
.
MNCdigit1
,
plmnID
.
MNCdigit2
,
plmnID
.
MNCdigit3
);
plmnID
.
MNCdigit1
,
plmnID
.
MNCdigit2
,
plmnID
.
MNCdigit3
);
return
itti_send_msg_to_task
(
TASK_RRC_UE
,
NB_eNB_INST
+
0
/* TODO to be virtualized */
,
message_p
);
return
itti_send_msg_to_task
(
TASK_RRC_UE
,
NB_eNB_INST
+
user_id
,
message_p
);
}
}
int
nas_itti_nas_establish_req
(
as_cause_t
cause
,
as_call_type_t
type
,
as_stmsi_t
s_tmsi
,
plmn_t
plmnID
,
Byte_t
*
data
,
uint32_t
length
)
int
nas_itti_nas_establish_req
(
as_cause_t
cause
,
as_call_type_t
type
,
as_stmsi_t
s_tmsi
,
plmn_t
plmnID
,
Byte_t
*
data
,
uint32_t
length
,
int
user_id
)
{
{
MessageDef
*
message_p
;
MessageDef
*
message_p
;
...
@@ -255,10 +255,10 @@ int nas_itti_nas_establish_req(as_cause_t cause, as_call_type_t type, as_stmsi_t
...
@@ -255,10 +255,10 @@ int nas_itti_nas_establish_req(as_cause_t cause, as_call_type_t type, as_stmsi_t
plmnID
.
MCCdigit1
,
plmnID
.
MCCdigit2
,
plmnID
.
MCCdigit3
,
plmnID
.
MCCdigit1
,
plmnID
.
MCCdigit2
,
plmnID
.
MCCdigit3
,
plmnID
.
MNCdigit1
,
plmnID
.
MNCdigit2
,
plmnID
.
MNCdigit3
);
plmnID
.
MNCdigit1
,
plmnID
.
MNCdigit2
,
plmnID
.
MNCdigit3
);
return
itti_send_msg_to_task
(
TASK_RRC_UE
,
NB_eNB_INST
+
0
/* TODO to be virtualized */
,
message_p
);
return
itti_send_msg_to_task
(
TASK_RRC_UE
,
NB_eNB_INST
+
user_id
,
message_p
);
}
}
int
nas_itti_ul_data_req
(
const
uint32_t
ue_id
,
void
*
const
data
,
const
uint32_t
length
)
int
nas_itti_ul_data_req
(
const
uint32_t
ue_id
,
void
*
const
data
,
const
uint32_t
length
,
int
user_id
)
{
{
MessageDef
*
message_p
;
MessageDef
*
message_p
;
...
@@ -268,10 +268,10 @@ int nas_itti_ul_data_req(const uint32_t ue_id, void *const data, const uint32_t
...
@@ -268,10 +268,10 @@ int nas_itti_ul_data_req(const uint32_t ue_id, void *const data, const uint32_t
NAS_UPLINK_DATA_REQ
(
message_p
).
nasMsg
.
data
=
data
;
NAS_UPLINK_DATA_REQ
(
message_p
).
nasMsg
.
data
=
data
;
NAS_UPLINK_DATA_REQ
(
message_p
).
nasMsg
.
length
=
length
;
NAS_UPLINK_DATA_REQ
(
message_p
).
nasMsg
.
length
=
length
;
return
itti_send_msg_to_task
(
TASK_RRC_UE
,
NB_eNB_INST
+
0
/* TODO to be virtualized */
,
message_p
);
return
itti_send_msg_to_task
(
TASK_RRC_UE
,
NB_eNB_INST
+
user_id
,
message_p
);
}
}
int
nas_itti_rab_establish_rsp
(
const
as_stmsi_t
s_tmsi
,
const
as_rab_id_t
rabID
,
const
nas_error_code_t
errCode
)
int
nas_itti_rab_establish_rsp
(
const
as_stmsi_t
s_tmsi
,
const
as_rab_id_t
rabID
,
const
nas_error_code_t
errCode
,
int
user_id
)
{
{
MessageDef
*
message_p
;
MessageDef
*
message_p
;
...
@@ -287,5 +287,5 @@ int nas_itti_rab_establish_rsp(const as_stmsi_t s_tmsi, const as_rab_id_t rabID,
...
@@ -287,5 +287,5 @@ int nas_itti_rab_establish_rsp(const as_stmsi_t s_tmsi, const as_rab_id_t rabID,
NULL
,
0
,
NULL
,
0
,
"0 NAS_RAB_ESTABLI_RSP MME code %u m-TMSI %u rb id %u status %u"
,
"0 NAS_RAB_ESTABLI_RSP MME code %u m-TMSI %u rb id %u status %u"
,
s_tmsi
.
MMEcode
,
s_tmsi
.
m_tmsi
,
rabID
,
errCode
);
s_tmsi
.
MMEcode
,
s_tmsi
.
m_tmsi
,
rabID
,
errCode
);
return
itti_send_msg_to_task
(
TASK_RRC_UE
,
NB_eNB_INST
+
0
/* TODO to be virtualized */
,
message_p
);
return
itti_send_msg_to_task
(
TASK_RRC_UE
,
NB_eNB_INST
+
user_id
,
message_p
);
}
}
openair3/NAS/UE/nas_itti_messaging.h
View file @
8d34217c
...
@@ -50,12 +50,12 @@ int nas_itti_protected_msg(
...
@@ -50,12 +50,12 @@ int nas_itti_protected_msg(
int
nas_itti_kenb_refresh_req
(
const
Byte_t
kenb
[
32
]);
int
nas_itti_kenb_refresh_req
(
const
Byte_t
kenb
[
32
]);
int
nas_itti_cell_info_req
(
const
plmn_t
plmnID
,
const
Byte_t
rat
);
int
nas_itti_cell_info_req
(
const
plmn_t
plmnID
,
const
Byte_t
rat
,
int
user_id
);
int
nas_itti_nas_establish_req
(
as_cause_t
cause
,
as_call_type_t
type
,
as_stmsi_t
s_tmsi
,
plmn_t
plmnID
,
Byte_t
*
data_pP
,
uint32_t
lengthP
);
int
nas_itti_nas_establish_req
(
as_cause_t
cause
,
as_call_type_t
type
,
as_stmsi_t
s_tmsi
,
plmn_t
plmnID
,
Byte_t
*
data_pP
,
uint32_t
lengthP
,
int
user_id
);
int
nas_itti_ul_data_req
(
const
uint32_t
ue_idP
,
void
*
const
data_pP
,
const
uint32_t
lengthP
);
int
nas_itti_ul_data_req
(
const
uint32_t
ue_idP
,
void
*
const
data_pP
,
const
uint32_t
lengthP
,
int
user_id
);
int
nas_itti_rab_establish_rsp
(
const
as_stmsi_t
s_tmsi
,
const
as_rab_id_t
rabID
,
const
nas_error_code_t
errCode
);
int
nas_itti_rab_establish_rsp
(
const
as_stmsi_t
s_tmsi
,
const
as_rab_id_t
rabID
,
const
nas_error_code_t
errCode
,
int
user_id
);
# endif
# endif
#endif
/* NAS_ITTI_MESSAGING_H_ */
#endif
/* NAS_ITTI_MESSAGING_H_ */
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