Bug 2077 - Icmpv6L4Protocol::HandleDestinationUnreachable must check the packet size, not its serialized size
This commit is contained in:
@@ -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
|
||||
------------
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user