diff --git a/src/internet/model/ipv6-l3-protocol.cc b/src/internet/model/ipv6-l3-protocol.cc index 6ac55c476..46735ce8f 100644 --- a/src/internet/model/ipv6-l3-protocol.cc +++ b/src/internet/model/ipv6-l3-protocol.cc @@ -936,8 +936,8 @@ void Ipv6L3Protocol::Receive (Ptr device, Ptr p, uint16 NS_LOG_FUNCTION (this << device << p << protocol << from << to << packetType); NS_LOG_LOGIC ("Packet from " << from << " received on node " << m_node->GetId ()); - int32_t interface = GetInterfaceForDevice(device); - NS_ASSERT_MSG (interface != -1, "Received a packet from an interface that is not known to IPv6"); + NS_ASSERT_MSG (GetInterfaceForDevice(device) != -1, "Received a packet from an interface that is not known to IPv6"); + uint32_t interface = GetInterfaceForDevice(device); Ptr ipv6Interface = m_interfaces[interface]; Ptr packet = p->Copy ();