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
50c9d469
Commit
50c9d469
authored
Jul 01, 2019
by
nepes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remote UE Report extensions based on Release 14 for RAN
parent
ed72ec9e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
65 additions
and
11 deletions
+65
-11
cmake_targets/at_commands/CMakeLists.txt
cmake_targets/at_commands/CMakeLists.txt
+2
-0
openair3/NAS/COMMON/ESM/MSG/RemoteUEReport.c
openair3/NAS/COMMON/ESM/MSG/RemoteUEReport.c
+0
-1
openair3/NAS/COMMON/ESM/MSG/esm_msg.c
openair3/NAS/COMMON/ESM/MSG/esm_msg.c
+2
-2
openair3/NAS/COMMON/IES/PKMFAddress.c
openair3/NAS/COMMON/IES/PKMFAddress.c
+1
-0
openair3/NAS/UE/ESM/PdnConnectivity.c
openair3/NAS/UE/ESM/PdnConnectivity.c
+4
-3
openair3/NAS/UE/ESM/RemoteUeReport.c
openair3/NAS/UE/ESM/RemoteUeReport.c
+5
-2
openair3/NAS/UE/ESM/SAP/esm_sap.c
openair3/NAS/UE/ESM/SAP/esm_sap.c
+2
-2
openair3/NAS/UE/ESM/SAP/esm_send.c
openair3/NAS/UE/ESM/SAP/esm_send.c
+40
-0
openair3/NAS/UE/ESM/SAP/esm_send.h
openair3/NAS/UE/ESM/SAP/esm_send.h
+7
-0
openair3/S1AP/s1ap_eNB_nas_procedures.c
openair3/S1AP/s1ap_eNB_nas_procedures.c
+2
-1
No files found.
cmake_targets/at_commands/CMakeLists.txt
View file @
50c9d469
...
...
@@ -436,6 +436,7 @@ set(esm_SRC
${
OPENAIR_NAS_DIR
}
/UE/ESM/EsmStatusHdl.c
${
OPENAIR_NAS_DIR
}
/UE/ESM/PdnConnectivity.c
${
OPENAIR_NAS_DIR
}
/UE/ESM/PdnDisconnect.c
${
OPENAIR_NAS_DIR
}
/UE/ESM/RemoteUeReport.c
${
OPENAIR_NAS_DIR
}
/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextAccept.c
${
OPENAIR_NAS_DIR
}
/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextReject.c
...
...
@@ -469,6 +470,7 @@ set(esm_SRC
set
(
esm_HDR
${
OPENAIR_TARGETS
}
/COMMON/openairinterface5g_limits.h
${
OPENAIR_NAS_DIR
}
/UE/ESM/esm_main.h
${
OPENAIR_NAS_DIR
}
/UE/ESM/PdnConnectivity.h
${
OPENAIR_NAS_DIR
}
/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextAccept.h
${
OPENAIR_NAS_DIR
}
/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextReject.h
${
OPENAIR_NAS_DIR
}
/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextRequest.h
...
...
openair3/NAS/COMMON/ESM/MSG/RemoteUEReport.c
View file @
50c9d469
...
...
@@ -31,7 +31,6 @@ if ((decoded_result = decode_pkmf_address(&remoteuereport->pkmfaddress, 0, buffe
return
decoded
;
}
int
encode_remote_ue_report
(
remote_ue_report_msg
*
remoteuereport
,
uint8_t
*
buffer
,
uint32_t
len
)
{
int
encoded
=
0
;
...
...
openair3/NAS/COMMON/ESM/MSG/esm_msg.c
View file @
50c9d469
...
...
@@ -201,11 +201,11 @@ int esm_msg_decode(ESM_msg *msg, uint8_t *buffer, uint32_t len)
break
;
case
REMOTE_UE_REPORT
:
decode_result
=
decode_
esm_status
(
&
msg
->
remote_ue_report
,
buffer
,
len
);
decode_result
=
decode_
remote_ue_report
(
&
msg
->
remote_ue_report
,
buffer
,
len
);
break
;
case
REMOTE_UE_REPORT_RESPONSE
:
decode_result
=
decode_
esm_status
(
&
msg
->
remote_ue_report_response
,
buffer
,
len
);
decode_result
=
decode_
remote_ue_report_response
(
&
msg
->
remote_ue_report_response
,
buffer
,
len
);
break
;
default:
...
...
openair3/NAS/COMMON/IES/PKMFAddress.c
View file @
50c9d469
...
...
@@ -10,6 +10,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "PKMFAddress.h"
#include "TLVDecoder.h"
//static int encode_pkmf_address(pkmf_address_t *pkmfaddress, uint8_t iei, uint8_t *buffer, uint32_t len);
...
...
openair3/NAS/UE/ESM/PdnConnectivity.c
View file @
50c9d469
...
...
@@ -87,7 +87,7 @@ static int _pdn_connectivity_update(esm_data_t *esm_data, int pid, const OctetSt
esm_proc_pdn_type_t
pdn_type
,
const
OctetString
*
pdn_addr
,
int
esm_cause
);
static
int
_pdn_connectivity_delete
(
esm_data_t
*
esm_data
,
int
pid
);
static
int
_pdn_connectivity_set_pti
(
esm_data_t
*
esm_data
,
int
pid
,
int
pti
);
int
_pdn_connectivity_set_pti
(
esm_data_t
*
esm_data
,
int
pid
,
int
pti
);
static
int
_pdn_connectivity_find_apn
(
esm_data_t
*
esm_data
,
const
OctetString
*
apn
);
static
int
_pdn_connectivity_find_pdn
(
esm_data_t
*
esm_data
,
const
OctetString
*
apn
,
esm_proc_pdn_type_t
pdn_type
);
...
...
@@ -98,6 +98,7 @@ static int _pdn_connectivity_find_pdn(esm_data_t * esm_data, const OctetString *
static
void
*
_pdn_connectivity_t3482_handler
(
void
*
);
/* Maximum value of the PDN connectivity request retransmission counter */
#define ESM_PDN_CONNECTIVITY_COUNTER_MAX 5
...
...
@@ -358,7 +359,7 @@ int esm_proc_pdn_connectivity_accept(nas_user_t *user, int pti, esm_proc_pdn_typ
int
pid
=
RETURNerror
;
char
apn_first_char
[
4
];
LOG_VAR
(
char
,
str
[
128
]);
LOG_VAR
(
char
,
str
[
128
]);
if
(
isprint
(
apn
->
value
[
0
]))
{
apn_first_char
[
0
]
=
'\0'
;
...
...
@@ -914,7 +915,7 @@ static int _pdn_connectivity_delete(esm_data_t *esm_data, int pid)
** Return: RETURNok, RETURNerror **
** **
***************************************************************************/
static
int
_pdn_connectivity_set_pti
(
esm_data_t
*
esm_data
,
int
pid
,
int
pti
)
int
_pdn_connectivity_set_pti
(
esm_data_t
*
esm_data
,
int
pid
,
int
pti
)
{
if
(
pid
<
ESM_DATA_PDN_MAX
)
{
if
(
pid
!=
esm_data
->
pdn
[
pid
].
pid
)
{
...
...
openair3/NAS/UE/ESM/RemoteUeReport.c
View file @
50c9d469
...
...
@@ -43,10 +43,11 @@ Description
#include "esm_proc.h"
#include "commonDef.h"
#include "nas_log.h"
#include "PdnConnectivity.c"
#include "esmData.h"
#include "esm_cause.h"
#include "esm_pt.h"
#include "PdnConnectivity.h"
#include "emm_sap.h"
...
...
@@ -73,6 +74,8 @@ Description
/****************** E X P O R T E D F U N C T I O N S ******************/
/****************************************************************************/
//int _pdn_connectivity_set_pti(esm_data_t *esm_data, int pid, int pti);
int
esm_proc_remote_ue_report
(
nas_user_t
*
user
,
int
cid
,
unsigned
int
*
pti
)
{
LOG_FUNC_IN
;
...
...
@@ -91,8 +94,8 @@ int esm_proc_remote_ue_report(nas_user_t *user,int cid, unsigned int *pti)
}
//static int _pdn_connectivity_set_pti(esm_data_t *esm_data, int pid, int pti);
/* Update the PDN connection data */
rc
=
_pdn_connectivity_set_pti
(
esm_data
,
pid
,
*
pti
);
rc
=
_pdn_connectivity_set_pti
(
esm_data
,
pid
,
*
pti
);
if
(
rc
!=
RETURNok
)
{
LOG_TRACE
(
WARNING
,
"ESM-PROC - Failed to update PDN connection"
);
}
...
...
openair3/NAS/UE/ESM/SAP/esm_sap.c
View file @
50c9d469
...
...
@@ -772,12 +772,12 @@ static int _esm_sap_send(nas_user_t *user, int msg_type, int is_standalone,
break
;
case
REMOTE_UE_REPORT
:
rc
=
esm_
proc_remote_ue_report
(
user
,
pt
i
,
&
esm_msg
.
remote_ue_report
);
rc
=
esm_
send_remote_ue_report
(
eb
i
,
&
esm_msg
.
remote_ue_report
);
//#error "TODO"//
break
;
default:
LOG_TRACE
(
WARNING
,
"ESM-SAP
- Send unexpected ESM message 0x%x"
,
LOG_TRACE
(
WARNING
,
"ESM-SAP - Send unexpected ESM message 0x%x"
,
msg_type
);
break
;
}
...
...
openair3/NAS/UE/ESM/SAP/esm_send.c
View file @
50c9d469
...
...
@@ -456,6 +456,46 @@ int esm_send_deactivate_eps_bearer_context_accept(int ebi,
LOG_FUNC_RETURN
(
RETURNok
);
}
/****************************************************************************
** **
** Name: esm_send_remote_ue_report() **
** **
** Description: Builds sends Remote UE Report message **
** **
** The Remote UE Report message is sent **
** by the UE to to send information about a mew remote UE. **
** **
** **
** Inputs: ebi: EPS bearer identity **
** Others: None **
** **
** Outputs: msg: The ESM message to be sent **
** Return: RETURNok, RETURNerror **
** Others: None **
** **
***************************************************************************/
int
esm_send_remote_ue_report
(
int
ebi
,
remote_ue_report_msg
*
msg
)
{
LOG_FUNC_IN
;
/* Mandatory - ESM message header */
msg
->
protocoldiscriminator
=
EPS_SESSION_MANAGEMENT_MESSAGE
;
msg
->
epsbeareridentity
=
ebi
;
//msg->messagetype = DEACTIVATE_EPS_BEARER_CONTEXT_ACCEPT;
msg
->
proceduretransactionidentity
=
PROCEDURE_TRANSACTION_IDENTITY_UNASSIGNED
;
/* Optional IEs */
msg
->
pkmfaddress
.
pkmfipv4address
=
0
;
LOG_TRACE
(
INFO
,
"ESM-SAP - Send Remote UE Report message"
" message (pti=%d, ebi=%d)"
,
msg
->
proceduretransactionidentity
,
msg
->
epsbeareridentity
);
LOG_FUNC_RETURN
(
RETURNok
);
}
/****************************************************************************/
/********************* L O C A L F U N C T I O N S *********************/
...
...
openair3/NAS/UE/ESM/SAP/esm_send.h
View file @
50c9d469
...
...
@@ -55,6 +55,7 @@ Description Defines functions executed at the ESM Service Access
#include "ModifyEpsBearerContextAccept.h"
#include "ModifyEpsBearerContextReject.h"
#include "DeactivateEpsBearerContextAccept.h"
#include "RemoteUEReport.h"
#include "EsmInformationResponse.h"
...
...
@@ -92,6 +93,7 @@ int esm_send_status(int pti, int ebi, esm_status_msg *msg, int esm_cause);
*/
int
esm_send_pdn_connectivity_request
(
int
pti
,
int
is_emergency
,
int
pdn_type
,
const
char
*
apn
,
pdn_connectivity_request_msg
*
msg
);
int
esm_send_pdn_disconnect_request
(
int
pti
,
int
ebi
,
pdn_disconnect_request_msg
*
msg
);
...
...
@@ -101,16 +103,21 @@ int esm_send_pdn_disconnect_request(int pti, int ebi,
*/
int
esm_send_activate_default_eps_bearer_context_accept
(
int
ebi
,
activate_default_eps_bearer_context_accept_msg
*
msg
);
int
esm_send_activate_default_eps_bearer_context_reject
(
int
ebi
,
activate_default_eps_bearer_context_reject_msg
*
msg
,
int
esm_cause
);
int
esm_send_activate_dedicated_eps_bearer_context_accept
(
int
ebi
,
activate_dedicated_eps_bearer_context_accept_msg
*
msg
);
int
esm_send_activate_dedicated_eps_bearer_context_reject
(
int
ebi
,
activate_dedicated_eps_bearer_context_reject_msg
*
msg
,
int
esm_cause
);
int
esm_send_deactivate_eps_bearer_context_accept
(
int
ebi
,
deactivate_eps_bearer_context_accept_msg
*
msg
);
int
esm_send_remote_ue_report
(
int
ebi
,
remote_ue_report_msg
*
msg
);
#endif
/* __ESM_SEND_H__*/
openair3/S1AP/s1ap_eNB_nas_procedures.c
View file @
50c9d469
...
...
@@ -47,6 +47,7 @@
#include "s1ap_eNB_nas_procedures.h"
#include "s1ap_eNB_management_procedures.h"
#include "msc.h"
#include "S1AP_ProtocolIE-Field.h"
//------------------------------------------------------------------------------
int
s1ap_eNB_handle_nas_first_req
(
...
...
@@ -321,7 +322,7 @@ int s1ap_eNB_handle_nas_first_req(
ie
->
id
=
S1AP_ProtocolIE_ID_id_RelayNode_Indicator
;
ie
->
criticality
=
S1AP_Criticality_ignore
;
ie
->
value
.
present
=
S1AP_InitialUEMessage_IEs__value_PR_RelayNode_Indicator
;
//ie->value.choice.RelayNode_Indicator = S1AP_RelayNode_Indicator_t;
//ie->value.choice.RelayNode_Indicator = S1AP_
InitialUEMessage_IEs_t.value.choice.S1AP_
RelayNode_Indicator_t;
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
}
...
...
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