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
canghaiwuhen
OpenXG-RAN
Commits
fbc743d2
Commit
fbc743d2
authored
Nov 22, 2020
by
cucengineer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update nas_nrue_task.c
parent
a6af1273
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
openair3/NAS/NR_UE/nas_nrue_task.c
openair3/NAS/NR_UE/nas_nrue_task.c
+38
-0
No files found.
openair3/NAS/NR_UE/nas_nrue_task.c
View file @
fbc743d2
...
@@ -276,6 +276,7 @@ static int _nas_mm_msg_decode_header(mm_msg_header_t *header,
...
@@ -276,6 +276,7 @@ static int _nas_mm_msg_decode_header(mm_msg_header_t *header,
return
(
size
);
return
(
size
);
}
}
<<<<<<<
HEAD
// static int _emm_msg_encode_header(const emm_msg_header_t *header,
// static int _emm_msg_encode_header(const emm_msg_header_t *header,
// uint8_t *buffer, uint32_t len) {
// uint8_t *buffer, uint32_t len) {
// int size = 0;
// int size = 0;
...
@@ -290,3 +291,40 @@ static int _nas_mm_msg_decode_header(mm_msg_header_t *header,
...
@@ -290,3 +291,40 @@ static int _nas_mm_msg_decode_header(mm_msg_header_t *header,
// ENCODE_U8(buffer + size, header->message_type, size);
// ENCODE_U8(buffer + size, header->message_type, size);
// return (size);
// return (size);
// }
// }
=======
int
encode_IdentityresponseIMSI
(
IdentityresponseIMSI_t
*
identity_response
,
uint8_t
*
buffer
,
uint32_t
len
)
{
int
encoded
=
0
;
int
encode_result
=
0
;
/* Checking IEI and pointer */
CHECK_PDU_POINTER_AND_LENGTH_ENCODER
(
buffer
,
IDENTITY_RESPONSE_MINIMUM_LENGTH
,
len
);
if
((
encode_result
=
encode_mobile_identity
(
&
identity_response
->
mobileidentity
,
0
,
buffer
+
encoded
,
len
-
encoded
))
<
0
)
//Return in case of error
return
encode_result
;
else
encoded
+=
encode_result
;
return
encoded
;
}
int
encode_authenticationresponse
(
authenticationresponse_t
*
authentication_response
,
uint8_t
*
buffer
,
uint32_t
len
)
{
int
encoded
=
0
;
int
encode_result
=
0
;
/* Checking IEI and pointer */
CHECK_PDU_POINTER_AND_LENGTH_ENCODER
(
buffer
,
AUTHENTICATION_RESPONSE_MINIMUM_LENGTH
,
len
);
if
((
encode_result
=
encode_authentication_response_parameter
(
&
authentication_response
->
authenticationresponseparameter
,
0
,
buffer
+
encoded
,
len
-
encoded
))
<
0
)
//Return in case of error
return
encode_result
;
else
encoded
+=
encode_result
;
return
encoded
;
}
>>>>>>>
parent
of
d659e98df
...
Update
nas_nrue_task
.
c
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