Commit 5dc001ad authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix Guti allocation

parent d9ecd50f
...@@ -2551,7 +2551,7 @@ void amf_n1::security_mode_complete_handle( ...@@ -2551,7 +2551,7 @@ void amf_n1::security_mode_complete_handle(
std::string guti = mcc + mnc + amf_cfg.guami.regionID + std::string guti = mcc + mnc + amf_cfg.guami.regionID +
amf_cfg.guami.AmfSetID + amf_cfg.guami.AmfPointer + amf_cfg.guami.AmfSetID + amf_cfg.guami.AmfPointer +
std::to_string(tmsi); conv::tmsi_to_string(tmsi);
Logger::amf_n1().debug("Allocated GUTI %s", guti.c_str()); Logger::amf_n1().debug("Allocated GUTI %s", guti.c_str());
// TODO: remove hardcoded values // TODO: remove hardcoded values
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
*/ */
#include "FiveGSTmsi.hpp" #include "FiveGSTmsi.hpp"
#include "conversions.hpp"
using namespace ngap; using namespace ngap;
...@@ -46,7 +47,7 @@ bool FiveGSTmsi::decodefrompdu(Ngap_FiveG_S_TMSI_t pdu) { ...@@ -46,7 +47,7 @@ bool FiveGSTmsi::decodefrompdu(Ngap_FiveG_S_TMSI_t pdu) {
amfSetid.getAMFSetID(setId); amfSetid.getAMFSetID(setId);
amfPointer.getAMFPointer(pointer); amfPointer.getAMFPointer(pointer);
_5g_s_tmsi = setId + pointer + std::to_string(tmsi); _5g_s_tmsi = setId + pointer + std::to_string(tmsi);
tmsi_value = std::to_string(tmsi); tmsi_value = conv::tmsi_to_string(tmsi);
return true; return true;
} }
......
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