Bug 2077 - Icmpv6L4Protocol::HandleDestinationUnreachable must check the packet size, not its serialized size

This commit is contained in:
Tommaso Pecorella
2015-03-14 18:45:02 +01:00
parent 7967235960
commit b04062ce08
2 changed files with 2 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ Bugs fixed
- Bug 1974 - CalculateTxTime should return a Time, not a double
- Bug 2070 - Wrong report of Packets and Bytes stored in CoDeL
- Bug 2073 - NDisc cache entries update timer might be stuck in a loop
- Bug 2077 - Icmpv6L4Protocol::HandleDestinationUnreachable must check the packet size, not its serialized size
Known issues
------------

View File

@@ -817,7 +817,7 @@ void Icmpv6L4Protocol::HandleDestinationUnreachable (Ptr<Packet> p, Ipv6Address
Ptr<Packet> origPkt = unreach.GetPacket ();
Ipv6Header ipHeader;
if ( origPkt->GetSerializedSize () > ipHeader.GetSerializedSize () )
if ( origPkt->GetSize () > ipHeader.GetSerializedSize () )
{
origPkt->RemoveHeader (ipHeader);
uint8_t payload[8];