Skip to content

Commit

Permalink
lte: (fixes #106) IMSI is a uint64_t
Browse files Browse the repository at this point in the history
  • Loading branch information
mrequena committed Dec 12, 2019
1 parent eed73f5 commit 553a9fb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/lte/model/epc-gtpc-header.cc
Original file line number Diff line number Diff line change
Expand Up @@ -874,14 +874,14 @@ GtpcModifyBearerRequestMessage::Print (std::ostream &os) const
os << " imsi " << m_imsi << " uliEcgi " << m_uliEcgi;
}

uint8_t
uint64_t
GtpcModifyBearerRequestMessage::GetImsi () const
{
return m_imsi;
}

void
GtpcModifyBearerRequestMessage::SetImsi (uint8_t imsi)
GtpcModifyBearerRequestMessage::SetImsi (uint64_t imsi)
{
m_imsi = imsi;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lte/model/epc-gtpc-header.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ class GtpcModifyBearerRequestMessage : public GtpcHeader, public GtpcIes
virtual void Print (std::ostream &os) const;
virtual uint32_t GetMessageSize (void) const;

uint8_t GetImsi () const;
void SetImsi (uint8_t imsi);
uint64_t GetImsi () const;
void SetImsi (uint64_t imsi);

uint32_t GetUliEcgi () const;
void SetUliEcgi (uint32_t uliEcgi);
Expand Down
6 changes: 3 additions & 3 deletions src/lte/model/epc-pgw-application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ EpcPgwApplication::DoRecvCreateSessionRequest (Ptr<Packet> packet)
packet->RemoveHeader (msg);
uint64_t imsi = msg.GetImsi ();
uint16_t cellId = msg.GetUliEcgi ();
NS_LOG_DEBUG ("cellId " << cellId << " imsi " << (uint16_t)imsi);
NS_LOG_DEBUG ("cellId " << cellId << " IMSI " << imsi);

std::map<uint64_t, Ptr<UeInfo> >::iterator ueit = m_ueInfoByImsiMap.find (imsi);
NS_ASSERT_MSG (ueit != m_ueInfoByImsiMap.end (), "unknown IMSI " << imsi);
Expand Down Expand Up @@ -351,9 +351,9 @@ EpcPgwApplication::DoRecvModifyBearerRequest (Ptr<Packet> packet)

GtpcModifyBearerRequestMessage msg;
packet->RemoveHeader (msg);
uint8_t imsi = msg.GetImsi ();
uint64_t imsi = msg.GetImsi ();
uint16_t cellId = msg.GetUliEcgi ();
NS_LOG_DEBUG ("cellId " << cellId << "IMSI " << (uint16_t)imsi);
NS_LOG_DEBUG ("cellId " << cellId << " IMSI " << imsi);

std::map<uint64_t, Ptr<UeInfo> >::iterator ueit = m_ueInfoByImsiMap.find (imsi);
NS_ASSERT_MSG (ueit != m_ueInfoByImsiMap.end (), "unknown IMSI " << imsi);
Expand Down
8 changes: 4 additions & 4 deletions src/lte/model/epc-sgw-application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ EpcSgwApplication::DoRecvCreateSessionRequest (Ptr<Packet> packet)

GtpcCreateSessionRequestMessage msg;
packet->RemoveHeader (msg);
uint8_t imsi = msg.GetImsi ();
uint64_t imsi = msg.GetImsi ();
uint16_t cellId = msg.GetUliEcgi ();
NS_LOG_DEBUG ("IMSI " << (uint16_t)imsi << " cellId " << cellId);
NS_LOG_DEBUG ("cellId " << cellId << " IMSI " << imsi);

std::map<uint16_t, EnbInfo>::iterator enbit = m_enbInfoByCellId.find (cellId);
NS_ASSERT_MSG (enbit != m_enbInfoByCellId.end (), "unknown CellId " << cellId);
Expand Down Expand Up @@ -298,9 +298,9 @@ EpcSgwApplication::DoRecvModifyBearerRequest (Ptr<Packet> packet)

GtpcModifyBearerRequestMessage msg;
packet->RemoveHeader (msg);
uint8_t imsi = msg.GetImsi ();
uint64_t imsi = msg.GetImsi ();
uint16_t cellId = msg.GetUliEcgi ();
NS_LOG_DEBUG ("IMSI " << (uint16_t)imsi << " cellId " << cellId);
NS_LOG_DEBUG ("cellId " << cellId << " IMSI " << imsi);

std::map<uint16_t, EnbInfo>::iterator enbit = m_enbInfoByCellId.find (cellId);
NS_ASSERT_MSG (enbit != m_enbInfoByCellId.end (), "unknown CellId " << cellId);
Expand Down

0 comments on commit 553a9fb

Please sign in to comment.