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

(-)a/src/internet/model/ipv4-header.cc (-2 / +5 lines)
 Lines 40-46    Link Here 
40
    m_flags (0),
40
    m_flags (0),
41
    m_fragmentOffset (0),
41
    m_fragmentOffset (0),
42
    m_checksum (0),
42
    m_checksum (0),
43
    m_goodChecksum (true)
43
    m_goodChecksum (true),
44
    m_headerSize(5*4)
44
{
45
{
45
}
46
}
46
47
 Lines 339-345    Link Here 
339
uint32_t 
340
uint32_t 
340
Ipv4Header::GetSerializedSize (void) const
341
Ipv4Header::GetSerializedSize (void) const
341
{
342
{
342
  return 5 * 4;
343
  //return 5 * 4;
344
	return m_headerSize;
343
}
345
}
344
346
345
void
347
void
 Lines 414-419    Link Here 
414
  /* i.Next (2); // checksum */
416
  /* i.Next (2); // checksum */
415
  m_source.Set (i.ReadNtohU32 ());
417
  m_source.Set (i.ReadNtohU32 ());
416
  m_destination.Set (i.ReadNtohU32 ());
418
  m_destination.Set (i.ReadNtohU32 ());
419
  m_headerSize = headerSize;
417
420
418
  if (m_calcChecksum) 
421
  if (m_calcChecksum) 
419
    {
422
    {
(-)a/src/internet/model/ipv4-header.h (+1 lines)
 Lines 244-249    Link Here 
244
  Ipv4Address m_destination;
244
  Ipv4Address m_destination;
245
  uint16_t m_checksum;
245
  uint16_t m_checksum;
246
  bool m_goodChecksum;
246
  bool m_goodChecksum;
247
  uint16_t m_headerSize;
247
};
248
};
248
249
249
} // namespace ns3
250
} // namespace ns3

Return to bug 1441