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
ZhouShuya
OpenXG-RAN
Commits
4d368782
Commit
4d368782
authored
Nov 19, 2020
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Update nas_nrue_task.c"
This reverts commit
d659e98d
.
parent
d659e98d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
openair3/NAS/NR_UE/nas_nrue_task.c
openair3/NAS/NR_UE/nas_nrue_task.c
+22
-22
No files found.
openair3/NAS/NR_UE/nas_nrue_task.c
View file @
4d368782
...
@@ -270,36 +270,36 @@ static int _emm_msg_encode_header(const emm_msg_header_t *header,
...
@@ -270,36 +270,36 @@ static int _emm_msg_encode_header(const emm_msg_header_t *header,
int
encode_IdentityresponseIMSI
(
IdentityresponseIMSI_t
*
identity_response
,
uint8_t
*
buffer
,
uint32_t
len
)
int
encode_IdentityresponseIMSI
(
IdentityresponseIMSI_t
*
identity_response
,
uint8_t
*
buffer
,
uint32_t
len
)
{
{
//
int encoded = 0;
int
encoded
=
0
;
//
int encode_result = 0;
int
encode_result
=
0
;
/
/ /
* Checking IEI and pointer */
/* Checking IEI and pointer */
//
CHECK_PDU_POINTER_AND_LENGTH_ENCODER(buffer, IDENTITY_RESPONSE_MINIMUM_LENGTH, len);
CHECK_PDU_POINTER_AND_LENGTH_ENCODER
(
buffer
,
IDENTITY_RESPONSE_MINIMUM_LENGTH
,
len
);
//
if ((encode_result =
if
((
encode_result
=
//
encode_mobile_identity(&identity_response->mobileidentity, 0, buffer +
encode_mobile_identity
(
&
identity_response
->
mobileidentity
,
0
,
buffer
+
//
encoded, len - encoded)) < 0) //Return in case of error
encoded
,
len
-
encoded
))
<
0
)
//Return in case of error
//
return encode_result;
return
encode_result
;
//
else
else
//
encoded += encode_result;
encoded
+=
encode_result
;
//
return encoded;
return
encoded
;
}
}
int
encode_authenticationresponse
(
authenticationresponse_t
*
authentication_response
,
uint8_t
*
buffer
,
uint32_t
len
)
int
encode_authenticationresponse
(
authenticationresponse_t
*
authentication_response
,
uint8_t
*
buffer
,
uint32_t
len
)
{
{
//
int encoded = 0;
int
encoded
=
0
;
//
int encode_result = 0;
int
encode_result
=
0
;
/
/ /
* Checking IEI and pointer */
/* Checking IEI and pointer */
//
CHECK_PDU_POINTER_AND_LENGTH_ENCODER(buffer, AUTHENTICATION_RESPONSE_MINIMUM_LENGTH, len);
CHECK_PDU_POINTER_AND_LENGTH_ENCODER
(
buffer
,
AUTHENTICATION_RESPONSE_MINIMUM_LENGTH
,
len
);
//
if ((encode_result =
if
((
encode_result
=
//
encode_authentication_response_parameter(&authentication_response->authenticationresponseparameter,
encode_authentication_response_parameter
(
&
authentication_response
->
authenticationresponseparameter
,
//
0, buffer + encoded, len - encoded)) < 0) //Return in case of error
0
,
buffer
+
encoded
,
len
-
encoded
))
<
0
)
//Return in case of error
//
return encode_result;
return
encode_result
;
//
else
else
//
encoded += encode_result;
encoded
+=
encode_result
;
//
return encoded;
return
encoded
;
}
}
\ No newline at end of file
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