internet: (fixes #2383) IPv4 header for reassembled packets reports a wrong payload size.

This commit is contained in:
Tommaso Pecorella
2016-04-22 02:27:25 +02:00
parent 430c75cbc2
commit d7d5575dc1
2 changed files with 2 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ Bugs fixed
- Bug 2353 - TCP Vegas implementation
- Bug 2375 - Flowmonitor parse crashes when no pkt is received
- Bug 2377 - SocketIpTosTag and SocketIpv6TclassTag may be added twice in UDP
- Bug 2383 - IPv4 header for reassembled packets reports a wrong payload size
Known issues
------------

View File

@@ -1070,7 +1070,7 @@ Ipv4L3Protocol::LocalDeliver (Ptr<const Packet> packet, Ipv4Header const&ip, uin
}
NS_LOG_LOGIC ("Got last fragment, Packet is complete " << *p );
ipHeader.SetFragmentOffset (0);
ipHeader.SetPayloadSize (p->GetSize () + ipHeader.GetSerializedSize ());
ipHeader.SetPayloadSize (p->GetSize ());
}
m_localDeliverTrace (ipHeader, p, iif);