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.
69 lines
2.0 KiB
C++
69 lines
2.0 KiB
C++
/**
|
|
*
|
|
* \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 SRSRAN_UE_GW_INTERFACES_H
|
|
#define SRSRAN_UE_GW_INTERFACES_H
|
|
|
|
#include "srsran/asn1/liblte_mme.h"
|
|
#include "srsran/common/byte_buffer.h"
|
|
|
|
namespace srsue {
|
|
|
|
class gw_interface_nas
|
|
{
|
|
public:
|
|
virtual int setup_if_addr(uint32_t eps_bearer_id,
|
|
uint32_t lcid,
|
|
uint8_t pdn_type,
|
|
uint32_t ip_addr,
|
|
uint8_t* ipv6_if_id,
|
|
char* err_str) = 0;
|
|
virtual int apply_traffic_flow_template(const uint8_t& eps_bearer_id,
|
|
const uint8_t& lcid,
|
|
const LIBLTE_MME_TRAFFIC_FLOW_TEMPLATE_STRUCT* tft) = 0;
|
|
|
|
typedef enum {
|
|
TEST_LOOP_INACTIVE = 0,
|
|
TEST_LOOP_MODE_A_ACTIVE,
|
|
TEST_LOOP_MODE_B_ACTIVE,
|
|
TEST_LOOP_MODE_C_ACTIVE
|
|
} test_loop_mode_state_t;
|
|
|
|
/**
|
|
* Updates the test loop mode. The IP delay parameter is only valid for Mode B.
|
|
* @param mode
|
|
* @param ip_pdu_delay_ms The PDU delay in ms
|
|
*/
|
|
virtual void set_test_loop_mode(const test_loop_mode_state_t mode, const uint32_t ip_pdu_delay_ms = 0) = 0;
|
|
};
|
|
|
|
class gw_interface_rrc
|
|
{
|
|
public:
|
|
virtual void add_mch_port(uint32_t lcid, uint32_t port) = 0;
|
|
virtual int update_lcid(uint32_t eps_bearer_id, uint32_t new_lcid) = 0;
|
|
};
|
|
|
|
class gw_interface_pdcp
|
|
{
|
|
public:
|
|
virtual void write_pdu(uint32_t lcid, srsran::unique_byte_buffer_t pdu) = 0;
|
|
virtual void write_pdu_mch(uint32_t lcid, srsran::unique_byte_buffer_t pdu) = 0;
|
|
};
|
|
|
|
class gw_interface_stack : public gw_interface_nas, public gw_interface_rrc, public gw_interface_pdcp
|
|
{};
|
|
|
|
} // namespace srsue
|
|
|
|
#endif // SRSRAN_UE_GW_INTERFACES_H
|