Bugzilla – Attachment #943: patch for bug #960
Icmpv4Header header;
header.SetType (Icmpv4Header::ECHO);
header.SetCode (0);
if (Node::ChecksumEnabled ())
{
header.EnableChecksum ();
}
p->AddHeader (header);
m_sent.insert (std::make_pair (m_seq - 1, Simulator::Now()));
m_socket->Send (p, 0);