Checksum for Ipv4RawSocket

This commit is contained in:
Daniel L.
2012-10-15 17:35:09 -04:00
parent 806f5e9026
commit ff64750b99

View File

@@ -532,6 +532,10 @@ Ipv4L3Protocol::SendWithHeader (Ptr<Packet> packet,
Ptr<Ipv4Route> route)
{
NS_LOG_FUNCTION (this << packet << ipHeader << route);
if (Node::ChecksumEnabled ())
{
ipHeader.EnableChecksum ();
}
SendRealOut (route, packet, ipHeader);
}