mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.5 KiB
C
84 lines
2.5 KiB
C
4 years ago
|
/**
|
||
|
*
|
||
|
* \section COPYRIGHT
|
||
|
*
|
||
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
|
*
|
||
|
* By using this file, you agree to the terms and conditions set
|
||
|
* forth in the LICENSE file which can be found at the top level of
|
||
|
* the distribution.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef SRSENB_NGAP_UE_PROC_H
|
||
|
#define SRSENB_NGAP_UE_PROC_H
|
||
|
|
||
|
#include "ngap_interfaces.h"
|
||
|
#include "ngap_ue_utils.h"
|
||
|
|
||
|
#include "srsran/asn1/asn1_utils.h"
|
||
|
#include "srsran/asn1/ngap.h"
|
||
|
#include "srsran/common/buffer_pool.h"
|
||
|
#include "srsran/common/stack_procedure.h"
|
||
|
#include "srsran/interfaces/gnb_rrc_nr_interfaces.h"
|
||
|
|
||
|
#include <map>
|
||
|
#include <string>
|
||
|
|
||
|
namespace srsenb {
|
||
|
|
||
|
// TS 38.413 - Section 8.3 - UE Context Management Procedures
|
||
|
|
||
|
// TS 38.413 - Section 8.3.1 - Initial Context Setup
|
||
|
class ngap_ue_initial_context_setup_proc
|
||
|
{
|
||
|
public:
|
||
|
explicit ngap_ue_initial_context_setup_proc(ngap_interface_ngap_proc* parent_,
|
||
|
rrc_interface_ngap_nr* rrc_,
|
||
|
ngap_ue_ctxt_t* ue_ctxt);
|
||
|
srsran::proc_outcome_t init(const asn1::ngap_nr::init_context_setup_request_s& msg);
|
||
|
srsran::proc_outcome_t react(const bool security_mode_command_outcome);
|
||
|
srsran::proc_outcome_t step();
|
||
|
static const char* name() { return "Initial Context Setup"; }
|
||
|
|
||
|
private:
|
||
|
ngap_ue_ctxt_t* ue_ctxt;
|
||
|
ngap_interface_ngap_proc* parent = nullptr;
|
||
|
rrc_interface_ngap_nr* rrc = nullptr;
|
||
|
srslog::basic_logger& logger;
|
||
|
};
|
||
|
|
||
|
// TS 38.413 - Section 8.3.2 - UE Context Release Request (NG-RAN node initiated)
|
||
|
class ngap_ue_ue_context_release_proc
|
||
|
{
|
||
|
public:
|
||
|
explicit ngap_ue_ue_context_release_proc(ngap_interface_ngap_proc* parent_,
|
||
|
rrc_interface_ngap_nr* rrc_,
|
||
|
ngap_ue_ctxt_t* ue_ctxt);
|
||
|
srsran::proc_outcome_t init(const asn1::ngap_nr::ue_context_release_cmd_s& msg);
|
||
|
srsran::proc_outcome_t step();
|
||
|
static const char* name() { return "UE Context Release"; }
|
||
|
|
||
|
private:
|
||
|
ngap_ue_ctxt_t* ue_ctxt;
|
||
|
ngap_interface_ngap_proc* parent = nullptr;
|
||
|
rrc_interface_ngap_nr* rrc = nullptr;
|
||
|
srslog::basic_logger& logger;
|
||
|
};
|
||
|
|
||
|
// TS 38.413 - Section 8.3.4 - UE Context Modification
|
||
|
class ngap_ue_ue_context_modification_proc
|
||
|
{
|
||
|
public:
|
||
|
explicit ngap_ue_ue_context_modification_proc(ngap_interface_ngap_proc* parent_);
|
||
|
srsran::proc_outcome_t init();
|
||
|
srsran::proc_outcome_t step();
|
||
|
static const char* name() { return "UE Context Modification"; }
|
||
|
|
||
|
private:
|
||
|
ngap_interface_ngap_proc* parent;
|
||
|
};
|
||
|
|
||
|
} // namespace srsenb
|
||
|
|
||
|
#endif
|