fix bug 208 for true.

This commit is contained in:
Mathieu Lacage
2008-06-04 11:35:14 -07:00
parent 3e3f102d62
commit d86a521ff1

View File

@@ -301,8 +301,10 @@ Ipv4Header::Deserialize (Buffer::Iterator start)
m_flags |= MORE_FRAGMENTS;
}
i.Prev ();
m_fragmentOffset = i.ReadNtohU16 () & 0xfff8;
m_fragmentOffset *= 8;
m_fragmentOffset = i.ReadU8 () & 0x1f;
m_fragmentOffset <<= 8;
m_fragmentOffset |= i.ReadU8 ();
m_fragmentOffset <<= 3;
m_ttl = i.ReadU8 ();
m_protocol = i.ReadU8 ();
i.Next (2); // checksum