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
wangjie
OpenXG-RAN
Commits
aaf4bb81
Commit
aaf4bb81
authored
Nov 24, 2020
by
cucengineer
Browse files
Options
Browse Files
Download
Plain Diff
''test"
parents
b94e35e8
a281fd72
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
885 additions
and
886 deletions
+885
-886
executables/nr-uesoftmodem.c
executables/nr-uesoftmodem.c
+796
-796
openair3/NAS/NR_UE/nas_nrue_task.c
openair3/NAS/NR_UE/nas_nrue_task.c
+0
-1
openair3/NAS/NR_UE/nas_nrue_task.h
openair3/NAS/NR_UE/nas_nrue_task.h
+89
-89
No files found.
executables/nr-uesoftmodem.c
View file @
aaf4bb81
This diff is collapsed.
Click to expand it.
openair3/NAS/NR_UE/nas_nrue_task.c
View file @
aaf4bb81
...
@@ -235,7 +235,6 @@ void tesths(void)
...
@@ -235,7 +235,6 @@ void tesths(void)
}
}
int
decodeNasMsg
(
UENAS_msg
*
msg
,
uint8_t
*
buffer
,
uint32_t
len
)
{
int
decodeNasMsg
(
UENAS_msg
*
msg
,
uint8_t
*
buffer
,
uint32_t
len
)
{
int
header_result
;
int
header_result
;
int
decode_result
=
0
;
int
decode_result
=
0
;
...
...
openair3/NAS/NR_UE/nas_nrue_task.h
View file @
aaf4bb81
/*
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
* except in compliance with the License.
* except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
*
*
* http://www.openairinterface.org/?page_id=698
* http://www.openairinterface.org/?page_id=698
*
*
* Unless required by applicable law or agreed to in writing, software
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*-------------------------------------------------------------------------------
*-------------------------------------------------------------------------------
* For more information about the OpenAirInterface (OAI) Software Alliance:
* For more information about the OpenAirInterface (OAI) Software Alliance:
* contact@openairinterface.org
* contact@openairinterface.org
*/
*/
#ifndef NAS_NRUE_TASK_H_
#ifndef NAS_NRUE_TASK_H_
#define NAS_NRUE_TASK_H_
#define NAS_NRUE_TASK_H_
#include "openairinterface5g_limits.h"
#include "openairinterface5g_limits.h"
//CUC:add nas_nrue_task.h √
//CUC:add nas_nrue_task.h √
#include "platform_types.h"
#include "platform_types.h"
#include "nas_ue_task.h"
#include "nas_ue_task.h"
#include "nas_itti_messaging.h"
#include "nas_itti_messaging.h"
#include "nas_log.h"
#include "nas_log.h"
#include "TLVDecoder.h"
#include "TLVDecoder.h"
#include "TLVEncoder.h"
#include "TLVEncoder.h"
#include "NR_NAS_defs.h"
#include "NR_NAS_defs.h"
#include "nr_nas_msg_sim.h"
#include "nr_nas_msg_sim.h"
# define REGISTRATION_ACCEPT 0b01000010
# define REGISTRATION_ACCEPT 0b01000010
# define REGISTRATION_COMPLETE 0b01000011
# define REGISTRATION_COMPLETE 0b01000011
typedef
struct
__attribute__
((
packed
))
{
typedef
struct
__attribute__
((
packed
))
{
Extendedprotocoldiscriminator_t
epd
:
8
;
Extendedprotocoldiscriminator_t
epd
:
8
;
Security_header_t
sh
:
8
;
Security_header_t
sh
:
8
;
SGSmobilitymanagementmessages_t
mt
:
8
;
SGSmobilitymanagementmessages_t
mt
:
8
;
}
securityModeComplete_t
;
}
securityModeComplete_t
;
typedef
struct
__attribute__
((
packed
))
{
typedef
struct
__attribute__
((
packed
))
{
unsigned
int
len
:
8
;
unsigned
int
len
:
8
;
unsigned
int
allowed
:
4
;
unsigned
int
allowed
:
4
;
unsigned
int
value
:
4
;
unsigned
int
value
:
4
;
}
SGSregistrationresult
;
}
SGSregistrationresult
;
typedef
struct
__attribute__
((
packed
))
{
typedef
struct
__attribute__
((
packed
))
{
Extendedprotocoldiscriminator_t
epd
:
8
;
Extendedprotocoldiscriminator_t
epd
:
8
;
Security_header_t
sh
:
8
;
Security_header_t
sh
:
8
;
SGSmobilitymanagementmessages_t
mt
:
8
;
SGSmobilitymanagementmessages_t
mt
:
8
;
SGSregistrationresult
rr
;
SGSregistrationresult
rr
;
}
registrationaccept_t
;
}
registrationaccept_t
;
typedef
struct
__attribute__
((
packed
))
{
typedef
struct
__attribute__
((
packed
))
{
Extendedprotocoldiscriminator_t
epd
:
8
;
Extendedprotocoldiscriminator_t
epd
:
8
;
Security_header_t
sh
:
8
;
Security_header_t
sh
:
8
;
SGSmobilitymanagementmessages_t
mt
:
8
;
SGSmobilitymanagementmessages_t
mt
:
8
;
}
registrationcomplete_t
;
}
registrationcomplete_t
;
typedef
union
{
typedef
union
{
mm_msg_header_t
header
;
mm_msg_header_t
header
;
authenticationrequestHeader_t
authentication_request
;
authenticationrequestHeader_t
authentication_request
;
authenticationresponse_t
authentication_response
;
authenticationresponse_t
authentication_response
;
Identityrequest_t
identity_request
;
Identityrequest_t
identity_request
;
IdentityresponseIMSI_t
identity_response
;
IdentityresponseIMSI_t
identity_response
;
securityModeCommand_t
securitymode_command
;
securityModeCommand_t
securitymode_command
;
securityModeComplete_t
securitymode_complete
;
securityModeComplete_t
securitymode_complete
;
registrationaccept_t
registration_accept
;
registrationaccept_t
registration_accept
;
registrationcomplete_t
registration_complete
;
registrationcomplete_t
registration_complete
;
}
UENAS_msg
;
}
UENAS_msg
;
void
*
nas_nrue_task
(
void
*
args_p
);
void
*
nas_nrue_task
(
void
*
args_p
);
void
nr_nas_proc_dl_transfer_ind
(
UENAS_msg
*
msg
,
Byte_t
*
data
,
uint32_t
len
);
void
nr_nas_proc_dl_transfer_ind
(
UENAS_msg
*
msg
,
Byte_t
*
data
,
uint32_t
len
);
int
decodeNasMsg
(
UENAS_msg
*
msg
,
uint8_t
*
buffer
,
uint32_t
len
);
int
decodeNasMsg
(
UENAS_msg
*
msg
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encodeNasMsg
(
UENAS_msg
*
msg
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encodeNasMsg
(
UENAS_msg
*
msg
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encode_authentication_response5g
(
authenticationresponse_t
*
authentication_response
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encode_authentication_response5g
(
authenticationresponse_t
*
authentication_response
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encode_security_mode_complete5g
(
securityModeComplete_t
*
securitymodecomplete
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encode_security_mode_complete5g
(
securityModeComplete_t
*
securitymodecomplete
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encode_registration_complete5g
(
registrationcomplete_t
*
registrationcomplete
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encode_registration_complete5g
(
registrationcomplete_t
*
registrationcomplete
,
uint8_t
*
buffer
,
uint32_t
len
);
int
securityModeComplete5g
(
void
**
msg
);
int
securityModeComplete5g
(
void
**
msg
);
int
registrationComplete5g
(
void
**
msg
);
int
registrationComplete5g
(
void
**
msg
);
int
string2ByteArray
(
char
*
input
,
uint8_t
*
output
);
int
string2ByteArray
(
char
*
input
,
uint8_t
*
output
);
void
tesths
(
void
);
void
tesths
(
void
);
#endif
/* NAS_TASK_H_ */
#endif
/* NAS_TASK_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