Skip to content

Commit

Permalink
UE config refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
aligungr committed Dec 7, 2021
1 parent d3d1b39 commit 19484aa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/gnb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static nr::gnb::GnbConfig *ReadConfigYaml()
result->gnbIdLength = yaml::GetInt32(config, "idLength", 22, 32);
result->tac = yaml::GetInt32(config, "tac", 0, 0xFFFFFF);

result->portalIp = yaml::GetIp(config, "linkIp");
result->linkIp = yaml::GetIp(config, "linkIp");
result->ngapIp = yaml::GetIp(config, "ngapIp");
result->gtpIp = yaml::GetIp4(config, "gtpIp");

Expand Down
2 changes: 1 addition & 1 deletion src/gnb/rls/udp_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RlsUdpTask::RlsUdpTask(TaskBase *base, uint64_t sti, Vector3 phyLocation)

try
{
m_server = new udp::UdpServer(base->config->portalIp, cons::PortalPort);
m_server = new udp::UdpServer(base->config->linkIp, cons::RadioLinkPort);
}
catch (const LibError &e)
{
Expand Down
2 changes: 1 addition & 1 deletion src/gnb/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ struct GnbConfig
int tac{};
NetworkSlice nssai{};
std::vector<GnbAmfConfig> amfConfigs{};
std::string portalIp{};
std::string linkIp{};
std::string ngapIp{};
std::string gtpIp{};
std::optional<std::string> gtpAdvertiseIp{};
Expand Down
2 changes: 1 addition & 1 deletion src/ue/rls/udp_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RlsUdpTask::RlsUdpTask(TaskBase *base, RlsSharedContext *shCtx, const std::vecto
m_server = new udp::UdpServer();

for (auto &ip : searchSpace)
m_searchSpace.emplace_back(ip, cons::PortalPort);
m_searchSpace.emplace_back(ip, cons::RadioLinkPort);

m_simPos = Vector3{};
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct cons

// Some port values
static constexpr const uint16_t GtpPort = 2152;
static constexpr const uint16_t PortalPort = 4997;
static constexpr const uint16_t RadioLinkPort = 4997;

// TUN interface
static constexpr const char *TunNamePrefix = "uesimtun";
Expand Down

0 comments on commit 19484aa

Please sign in to comment.