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
spbro
OpenXG-RAN
Commits
38d7adc7
Commit
38d7adc7
authored
Jul 22, 2016
by
Frédéric Leroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE/*: fix ueid = 0
parent
c7a36ec6
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
21 additions
and
22 deletions
+21
-22
openair3/NAS/UE/EMM/Attach.c
openair3/NAS/UE/EMM/Attach.c
+1
-1
openair3/NAS/UE/EMM/Authentication.c
openair3/NAS/UE/EMM/Authentication.c
+2
-2
openair3/NAS/UE/EMM/Detach.c
openair3/NAS/UE/EMM/Detach.c
+2
-2
openair3/NAS/UE/EMM/Identification.c
openair3/NAS/UE/EMM/Identification.c
+1
-1
openair3/NAS/UE/EMM/SAP/emm_as.c
openair3/NAS/UE/EMM/SAP/emm_as.c
+1
-1
openair3/NAS/UE/EMM/SecurityModeControl.c
openair3/NAS/UE/EMM/SecurityModeControl.c
+1
-1
openair3/NAS/UE/ESM/DedicatedEpsBearerContextActivation.c
openair3/NAS/UE/ESM/DedicatedEpsBearerContextActivation.c
+2
-2
openair3/NAS/UE/ESM/DefaultEpsBearerContextActivation.c
openair3/NAS/UE/ESM/DefaultEpsBearerContextActivation.c
+2
-3
openair3/NAS/UE/ESM/EpsBearerContextDeactivation.c
openair3/NAS/UE/ESM/EpsBearerContextDeactivation.c
+1
-1
openair3/NAS/UE/ESM/EsmStatusHdl.c
openair3/NAS/UE/ESM/EsmStatusHdl.c
+1
-1
openair3/NAS/UE/ESM/PdnConnectivity.c
openair3/NAS/UE/ESM/PdnConnectivity.c
+2
-2
openair3/NAS/UE/ESM/PdnDisconnect.c
openair3/NAS/UE/ESM/PdnDisconnect.c
+2
-2
openair3/NAS/UE/nas_proc.c
openair3/NAS/UE/nas_proc.c
+3
-3
No files found.
openair3/NAS/UE/EMM/Attach.c
View file @
38d7adc7
...
...
@@ -440,7 +440,7 @@ int emm_proc_attach_accept(nas_user_t *user, long t3412, long t3402, long t3423,
*/
emm_sap
.
primitive
=
EMMAS_DATA_REQ
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
guti
=
user
->
emm_data
->
guti
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
ueid
=
0
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
ueid
=
user
->
ueid
;
/* Setup EPS NAS security data */
emm_as_set_security_data
(
&
emm_sap
.
u
.
emm_as
.
u
.
data
.
sctx
,
user
->
emm_data
->
security
,
FALSE
,
TRUE
);
...
...
openair3/NAS/UE/EMM/Authentication.c
View file @
38d7adc7
...
...
@@ -304,7 +304,7 @@ int emm_proc_authentication_request(nas_user_t *user, int native_ksi, int ksi,
emm_sap_t
emm_sap
;
emm_sap
.
primitive
=
EMMAS_SECURITY_RES
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
guti
=
user
->
emm_data
->
guti
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
ueid
=
0
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
ueid
=
user
->
ueid
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
msgType
=
EMM_AS_MSG_TYPE_AUTH
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
emm_cause
=
EMM_CAUSE_SUCCESS
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
res
=
&
res
;
...
...
@@ -648,7 +648,7 @@ static int _authentication_abnormal_cases_cde(nas_user_t *user, int emm_cause,
emm_sap_t
emm_sap
;
emm_sap
.
primitive
=
EMMAS_SECURITY_RES
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
guti
=
user
->
emm_data
->
guti
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
ueid
=
0
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
ueid
=
user
->
ueid
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
msgType
=
EMM_AS_MSG_TYPE_AUTH
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
emm_cause
=
emm_cause
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
auts
=
auts
;
...
...
openair3/NAS/UE/EMM/Detach.c
View file @
38d7adc7
...
...
@@ -151,7 +151,7 @@ int emm_proc_detach(nas_user_t *user, emm_proc_detach_type_t type, int switch_of
emm_as
->
switch_off
=
switch_off
;
/* Set the EPS mobile identity */
emm_as
->
guti
=
user
->
emm_data
->
guti
;
emm_as
->
ueid
=
0
;
emm_as
->
ueid
=
user
->
ueid
;
/* Setup EPS NAS security data */
emm_as_set_security_data
(
&
emm_as
->
sctx
,
user
->
emm_data
->
security
,
FALSE
,
TRUE
);
...
...
@@ -402,7 +402,7 @@ void *emm_detach_t3421_handler(void *args)
emm_as
->
switch_off
=
emm_detach_data
->
switch_off
;
/* Set the EPS mobile identity */
emm_as
->
guti
=
user
->
emm_data
->
guti
;
emm_as
->
ueid
=
0
;
emm_as
->
ueid
=
user
->
ueid
;
/* Setup EPS NAS security data */
emm_as_set_security_data
(
&
emm_as
->
sctx
,
user
->
emm_data
->
security
,
FALSE
,
TRUE
);
...
...
openair3/NAS/UE/EMM/Identification.c
View file @
38d7adc7
...
...
@@ -195,7 +195,7 @@ int emm_proc_identification_request(nas_user_t *user, emm_proc_identity_type_t t
*/
emm_sap
.
primitive
=
EMMAS_SECURITY_RES
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
guti
=
user
->
emm_data
->
guti
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
ueid
=
0
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
ueid
=
user
->
ueid
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
msgType
=
EMM_AS_MSG_TYPE_IDENT
;
/* Setup EPS NAS security data */
emm_as_set_security_data
(
&
emm_sap
.
u
.
emm_as
.
u
.
security
.
sctx
,
...
...
openair3/NAS/UE/EMM/SAP/emm_as.c
View file @
38d7adc7
...
...
@@ -194,7 +194,7 @@ int emm_as_send(nas_user_t *user, const emm_as_t *msg)
int
emm_cause
=
EMM_CAUSE_SUCCESS
;
emm_as_primitive_t
primitive
=
msg
->
primitive
;
uint32_t
ueid
=
0
;
uint32_t
ueid
=
user
->
ueid
;
LOG_TRACE
(
INFO
,
"EMMAS-SAP - Received primitive %s (%d)"
,
_emm_as_primitive_str
[
primitive
-
_EMMAS_START
-
1
],
primitive
);
...
...
openair3/NAS/UE/EMM/SecurityModeControl.c
View file @
38d7adc7
...
...
@@ -323,7 +323,7 @@ int emm_proc_security_mode_command(nas_user_t *user, int native_ksi, int ksi,
emm_sap_t
emm_sap
;
emm_sap
.
primitive
=
EMMAS_SECURITY_RES
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
guti
=
user
->
emm_data
->
guti
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
ueid
=
0
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
ueid
=
user
->
ueid
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
msgType
=
EMM_AS_MSG_TYPE_SMC
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
imeisv_request
=
imeisv_request
;
emm_sap
.
u
.
emm_as
.
u
.
security
.
emm_cause
=
emm_cause
;
...
...
openair3/NAS/UE/ESM/DedicatedEpsBearerContextActivation.c
View file @
38d7adc7
...
...
@@ -224,7 +224,7 @@ int esm_proc_dedicated_eps_bearer_context_accept(nas_user_t *user, int is_standa
* Notity EMM that ESM PDU has to be forwarded to lower layers
*/
emm_sap
.
primitive
=
EMMESM_UNITDATA_REQ
;
emm_sap
.
u
.
emm_esm
.
ueid
=
0
;
emm_sap
.
u
.
emm_esm
.
ueid
=
user
->
ueid
;
emm_esm
->
msg
.
length
=
msg
->
length
;
emm_esm
->
msg
.
value
=
msg
->
value
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
@@ -292,7 +292,7 @@ int esm_proc_dedicated_eps_bearer_context_reject(nas_user_t *user, int is_standa
* Notity EMM that ESM PDU has to be forwarded to lower layers
*/
emm_sap
.
primitive
=
EMMESM_UNITDATA_REQ
;
emm_sap
.
u
.
emm_esm
.
ueid
=
0
;
emm_sap
.
u
.
emm_esm
.
ueid
=
user
->
ueid
;
emm_esm
->
msg
.
length
=
msg
->
length
;
emm_esm
->
msg
.
value
=
msg
->
value
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
openair3/NAS/UE/ESM/DefaultEpsBearerContextActivation.c
View file @
38d7adc7
...
...
@@ -194,7 +194,7 @@ int esm_proc_default_eps_bearer_context_accept(nas_user_t *user, int is_standalo
* Notity EMM that ESM PDU has to be forwarded to lower layers
*/
emm_sap
.
primitive
=
EMMESM_UNITDATA_REQ
;
emm_sap
.
u
.
emm_esm
.
ueid
=
0
;
emm_sap
.
u
.
emm_esm
.
ueid
=
user
->
ueid
;
emm_esm
->
msg
.
length
=
msg
->
length
;
emm_esm
->
msg
.
value
=
msg
->
value
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
@@ -269,8 +269,7 @@ int esm_proc_default_eps_bearer_context_reject(nas_user_t *user, int is_standalo
* Notity EMM that ESM PDU has to be forwarded to lower layers
*/
emm_sap
.
primitive
=
EMMESM_UNITDATA_REQ
;
// FIXME REVIEW
emm_sap
.
u
.
emm_esm
.
ueid
=
0
;
emm_sap
.
u
.
emm_esm
.
ueid
=
user
->
ueid
;
emm_esm
->
msg
.
length
=
msg
->
length
;
emm_esm
->
msg
.
value
=
msg
->
value
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
openair3/NAS/UE/ESM/EpsBearerContextDeactivation.c
View file @
38d7adc7
...
...
@@ -292,7 +292,7 @@ int esm_proc_eps_bearer_context_deactivate_accept(nas_user_t *user, int is_stand
* Notity EMM that ESM PDU has to be forwarded to lower layers
*/
emm_sap
.
primitive
=
EMMESM_UNITDATA_REQ
;
emm_sap
.
u
.
emm_esm
.
ueid
=
0
;
emm_sap
.
u
.
emm_esm
.
ueid
=
user
->
ueid
;
emm_sap
.
u
.
emm_esm
.
u
.
data
.
msg
.
length
=
msg
->
length
;
emm_sap
.
u
.
emm_esm
.
u
.
data
.
msg
.
value
=
msg
->
value
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
openair3/NAS/UE/ESM/EsmStatusHdl.c
View file @
38d7adc7
...
...
@@ -176,7 +176,7 @@ int esm_proc_status(nas_user_t *user, int is_standalone,
* Notity EMM that ESM PDU has to be forwarded to lower layers
*/
emm_sap
.
primitive
=
EMMESM_UNITDATA_REQ
;
emm_sap
.
u
.
emm_esm
.
ueid
=
0
;
emm_sap
.
u
.
emm_esm
.
ueid
=
user
->
ueid
;
emm_sap
.
u
.
emm_esm
.
u
.
data
.
msg
.
length
=
msg
->
length
;
emm_sap
.
u
.
emm_esm
.
u
.
data
.
msg
.
value
=
msg
->
value
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
openair3/NAS/UE/ESM/PdnConnectivity.c
View file @
38d7adc7
...
...
@@ -296,7 +296,7 @@ int esm_proc_pdn_connectivity_request(nas_user_t *user, int is_standalone, int p
* Notity EMM that ESM PDU has to be forwarded to lower layers
*/
emm_sap
.
primitive
=
EMMESM_UNITDATA_REQ
;
emm_sap
.
u
.
emm_esm
.
ueid
=
0
;
emm_sap
.
u
.
emm_esm
.
ueid
=
user
->
ueid
;
emm_esm
->
msg
.
length
=
msg
->
length
;
emm_esm
->
msg
.
value
=
msg
->
value
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
@@ -631,7 +631,7 @@ static void *_pdn_connectivity_t3482_handler(void *args)
* has to be sent again
*/
emm_sap
.
primitive
=
EMMESM_UNITDATA_REQ
;
emm_sap
.
u
.
emm_esm
.
ueid
=
0
;
emm_sap
.
u
.
emm_esm
.
ueid
=
user
->
ueid
;
emm_esm
->
msg
.
length
=
data
->
msg
.
length
;
emm_esm
->
msg
.
value
=
data
->
msg
.
value
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
openair3/NAS/UE/ESM/PdnDisconnect.c
View file @
38d7adc7
...
...
@@ -183,7 +183,7 @@ int esm_proc_pdn_disconnect_request(nas_user_t *user, int is_standalone, int pti
* Notity EMM that ESM PDU has to be forwarded to lower layers
*/
emm_sap
.
primitive
=
EMMESM_UNITDATA_REQ
;
emm_sap
.
u
.
emm_esm
.
ueid
=
0
;
emm_sap
.
u
.
emm_esm
.
ueid
=
user
->
ueid
;
emm_esm
->
msg
.
length
=
msg
->
length
;
emm_esm
->
msg
.
value
=
msg
->
value
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
@@ -402,7 +402,7 @@ static void *_pdn_disconnect_t3492_handler(void *args)
* has to be sent again
*/
emm_sap
.
primitive
=
EMMESM_UNITDATA_REQ
;
emm_sap
.
u
.
emm_esm
.
ueid
=
0
;
emm_sap
.
u
.
emm_esm
.
ueid
=
user
->
ueid
;
emm_esm
->
msg
.
length
=
data
->
msg
.
length
;
emm_esm
->
msg
.
value
=
data
->
msg
.
value
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
openair3/NAS/UE/nas_proc.c
View file @
38d7adc7
...
...
@@ -1185,7 +1185,7 @@ int nas_proc_ul_transfer_cnf(nas_user_t *user)
* receiver side
*/
emm_sap
.
primitive
=
EMMAS_DATA_IND
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
ueid
=
0
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
ueid
=
user
->
ueid
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
delivered
=
TRUE
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
NASmsg
.
length
=
0
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
@@ -1222,7 +1222,7 @@ int nas_proc_ul_transfer_rej(nas_user_t *user)
* from lower layers
*/
emm_sap
.
primitive
=
EMMAS_DATA_IND
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
ueid
=
0
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
ueid
=
user
->
ueid
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
delivered
=
FALSE
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
NASmsg
.
length
=
0
;
rc
=
emm_sap_send
(
user
,
&
emm_sap
);
...
...
@@ -1259,7 +1259,7 @@ int nas_proc_dl_transfer_ind(nas_user_t *user, const Byte_t *data, uint32_t len)
* indication has been received from the Access-Stratum sublayer
*/
emm_sap
.
primitive
=
EMMAS_DATA_IND
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
ueid
=
0
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
ueid
=
user
->
ueid
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
delivered
=
TRUE
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
NASmsg
.
length
=
len
;
emm_sap
.
u
.
emm_as
.
u
.
data
.
NASmsg
.
value
=
(
uint8_t
*
)
data
;
...
...
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