Set correct packet size in IPv4 header after reassembly.

This commit is contained in:
Tommaso Pecorella
2013-12-04 20:56:33 +01:00
parent 1cb6b1dc86
commit 1cc097b05a

View File

@@ -891,6 +891,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 ());
}
m_localDeliverTrace (ipHeader, p, iif);