Commit 05b209e3 authored by aligungr's avatar aligungr

SRA dev.

parent 97e344f4
......@@ -28,7 +28,7 @@ int GnbSraTask::updateUeInfo(const InetAddress &addr, uint64_t sti)
}
else
{
int ueId = utils::NextId();
int ueId = ++m_ueIdCounter;
m_stiToUeId[sti] = ueId;
auto ctx = std::make_unique<SraUeContext>(ueId);
ctx->sti = sti;
......
......@@ -20,7 +20,7 @@ static const int TIMER_PERIOD_LOST_CONTROL = 2000;
namespace nr::gnb
{
GnbSraTask::GnbSraTask(TaskBase *base) : m_base{base}, m_udpTask{}, m_ueCtx{}, m_stiToUeId{}
GnbSraTask::GnbSraTask(TaskBase *base) : m_base{base}, m_udpTask{}, m_ueCtx{}, m_stiToUeId{}, m_ueIdCounter{}
{
m_logger = m_base->logBase->makeUniqueLogger("sra");
m_sti = utils::Random64();
......
......@@ -32,6 +32,7 @@ class GnbSraTask : public NtsTask
uint64_t m_sti;
std::unordered_map<int, std::unique_ptr<SraUeContext>> m_ueCtx;
std::unordered_map<uint64_t, int> m_stiToUeId;
int m_ueIdCounter;
friend class GnbCmdHandler;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment