mirror of https://github.com/PentHertz/srsLTE.git
64 lines
2.3 KiB
C++
64 lines
2.3 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 SRSEPC_S1AP_COMMON_H
|
|
#define SRSEPC_S1AP_COMMON_H
|
|
|
|
#include "srsran/asn1/gtpc_ies.h"
|
|
#include "srsran/asn1/liblte_mme.h"
|
|
#include "srsran/asn1/s1ap.h"
|
|
#include "srsran/common/security.h"
|
|
#include <netinet/sctp.h>
|
|
#include <string.h>
|
|
|
|
namespace srsepc {
|
|
|
|
static const uint8_t MAX_TA = 255; // Maximum TA supported
|
|
static const uint8_t MAX_BPLMN = 6; // Maximum broadcasted PLMNs per TAC
|
|
|
|
typedef struct {
|
|
uint8_t mme_code;
|
|
uint16_t mme_group;
|
|
uint16_t tac; // 16-bit tac
|
|
uint16_t mcc; // BCD-coded with 0xF filler
|
|
uint16_t mnc; // BCD-coded with 0xF filler
|
|
uint16_t paging_timer; // Paging timer in sec (T3413)
|
|
std::string mme_bind_addr;
|
|
std::string mme_name;
|
|
std::string dns_addr;
|
|
std::string full_net_name;
|
|
std::string short_net_name;
|
|
std::string mme_apn;
|
|
bool pcap_enable;
|
|
std::string pcap_filename;
|
|
srsran::CIPHERING_ALGORITHM_ID_ENUM encryption_algo;
|
|
srsran::INTEGRITY_ALGORITHM_ID_ENUM integrity_algo;
|
|
} s1ap_args_t;
|
|
|
|
typedef struct {
|
|
bool enb_name_present;
|
|
uint32_t enb_id;
|
|
std::string enb_name;
|
|
uint16_t mcc, mnc;
|
|
uint32_t plmn;
|
|
uint8_t nof_supported_ta;
|
|
std::array<uint16_t, MAX_TA> tacs;
|
|
std::array<uint16_t, MAX_BPLMN> nof_supported_bplmns;
|
|
std::array<std::array<uint32_t, MAX_BPLMN>, MAX_TA> bplmns;
|
|
asn1::s1ap::paging_drx_opts drx;
|
|
struct sctp_sndrcvinfo sri;
|
|
} enb_ctx_t;
|
|
|
|
} // namespace srsepc
|
|
|
|
#endif // SRSEPC_S1AP_COMMON_H
|