--- ns-3.0.11/src/node/ethernet-header.cc 2008-02-16 20:32:14.000000000 +0100 +++ ns-3.0.11/src/node/ethernet-header.cc 2008-03-07 10:42:18.000000000 +0100 @@ -149,7 +149,7 @@ } WriteTo (i, m_destination); WriteTo (i, m_source); - i.WriteU16 (m_lengthType); + i.WriteHtonU16 (m_lengthType); } uint32_t EthernetHeader::Deserialize (Buffer::Iterator start) @@ -163,7 +163,7 @@ ReadFrom (i, m_destination); ReadFrom (i, m_source); - m_lengthType = i.ReadU16 (); + m_lengthType = i.ReadNtohU16 (); return GetSerializedSize (); }