Bug 2077 - Icmpv6L4Protocol::HandleDestinationUnreachable must check the packet size, not its serialized size
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Sat, 14 Mar 2015 18:45:02 +0100
changeset 11333 113f3f38226e
parent 11332 c175b2ae730c
child 11334 62ce11a18acd
Bug 2077 - Icmpv6L4Protocol::HandleDestinationUnreachable must check the packet size, not its serialized size
RELEASE_NOTES
src/internet/model/icmpv6-l4-protocol.cc
--- a/RELEASE_NOTES	Wed Mar 11 16:50:35 2015 +0100
+++ b/RELEASE_NOTES	Sat Mar 14 18:45:02 2015 +0100
@@ -30,6 +30,7 @@
 - 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
 ------------
--- a/src/internet/model/icmpv6-l4-protocol.cc	Wed Mar 11 16:50:35 2015 +0100
+++ b/src/internet/model/icmpv6-l4-protocol.cc	Sat Mar 14 18:45:02 2015 +0100
@@ -817,7 +817,7 @@
   Ptr<Packet> origPkt = unreach.GetPacket ();
 
   Ipv6Header ipHeader;
-  if ( origPkt->GetSerializedSize () > ipHeader.GetSerializedSize () )
+  if ( origPkt->GetSize () > ipHeader.GetSerializedSize () )
     {
       origPkt->RemoveHeader (ipHeader);
       uint8_t payload[8];