View | Details | Raw Unified | Return to bug 960
Collapse All | Expand All

(-)a/src/applications/v4ping/v4ping.cc (+4 lines)
 Lines 195-200    Link Here 
195
  Icmpv4Header header;
195
  Icmpv4Header header;
196
  header.SetType (Icmpv4Header::ECHO);
196
  header.SetType (Icmpv4Header::ECHO);
197
  header.SetCode (0);
197
  header.SetCode (0);
198
  if (Node::ChecksumEnabled ())
199
  {
200
	  header.EnableChecksum ();
201
  }
198
  p->AddHeader (header);
202
  p->AddHeader (header);
199
  m_sent.insert (std::make_pair (m_seq - 1, Simulator::Now()));
203
  m_sent.insert (std::make_pair (m_seq - 1, Simulator::Now()));
200
  m_socket->Send (p, 0);
204
  m_socket->Send (p, 0);

Return to bug 960