|
|
| 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 |
|
|
|
| 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 |
|
|
| 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 |
{ |