Index: src/lte/model/epc-sgw-pgw-application.cc |
=================================================================== |
--- a/src/lte/model/epc-sgw-pgw-application.cc |
+++ b/src/lte/model/epc-sgw-pgw-application.cc |
@@ -160,6 +160,7 @@ |
bool |
EpcSgwPgwApplication::RecvFromTunDevice (Ptr<Packet> packet, const Address& source, const Address& dest, uint16_t protocolNumber) |
{ |
+ NS_UNUSED (protocolNumber); |
NS_LOG_FUNCTION (this << source << dest << packet << packet->GetSize ()); |
m_rxTunPktTrace (packet->Copy ()); |
Ptr<Packet> pCopy = packet->Copy (); |
@@ -281,7 +282,7 @@ |
gtpu.SetTeid (teid); |
// From 3GPP TS 29.281 v10.0.0 Section 5.1 |
// Length of the payload + the non obligatory GTP-U header |
- gtpu.SetLength (packet->GetSize () + gtpu.GetSerializedSize () - 8); |
+ gtpu.SetLength (static_cast<uint16_t> (packet->GetSize () + gtpu.GetSerializedSize () - 8)); |
packet->AddHeader (gtpu); |
uint32_t flags = 0; |
m_s1uSocket->SendTo (packet, flags, InetSocketAddress (enbAddr, m_gtpuUdpPort)); |
@@ -351,7 +352,7 @@ |
ueit->second->SetEnbAddr (enbAddr); |
EpcS11SapMme::CreateSessionResponseMessage res; |
- res.teid = req.imsi; // trick to avoid the need for allocating TEIDs on the S11 interface |
+ res.teid = static_cast<uint32_t> (req.imsi); // trick to avoid the need for allocating TEIDs on the S11 interface |
for (std::list<EpcS11SapSgw::BearerContextToBeCreated>::iterator bit = req.bearerContextsToBeCreated.begin (); |
bit != req.bearerContextsToBeCreated.end (); |
@@ -390,7 +391,7 @@ |
ueit->second->SetEnbAddr (enbAddr); |
// no actual bearer modification: for now we just support the minimum needed for path switch request (handover) |
EpcS11SapMme::ModifyBearerResponseMessage res; |
- res.teid = imsi; // trick to avoid the need for allocating TEIDs on the S11 interface |
+ res.teid = static_cast<uint32_t> (imsi); // trick to avoid the need for allocating TEIDs on the S11 interface |
res.cause = EpcS11SapMme::ModifyBearerResponseMessage::REQUEST_ACCEPTED; |
m_s11SapMme->ModifyBearerResponse (res); |
} |
@@ -404,7 +405,7 @@ |
NS_ASSERT_MSG (ueit != m_ueInfoByImsiMap.end (), "unknown IMSI " << imsi); |
EpcS11SapMme::DeleteBearerRequestMessage res; |
- res.teid = imsi; |
+ res.teid = static_cast<uint32_t> (imsi); |
for (std::list<EpcS11SapSgw::BearerContextToBeRemoved>::iterator bit = req.bearerContextsToBeRemoved.begin (); |
bit != req.bearerContextsToBeRemoved.end (); |