internet: (fixes #2383) IPv4 header for reassembled packets reports a wrong payload size.
This commit is contained in:
@@ -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
|
||||
------------
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user