Packets/DefaultBundle: BUGFIX: Remove invalid EthernetPacket::type_length field overw...
g0dil [Tue, 11 Dec 2007 14:10:17 +0000 (14:10 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@554 270642c3-0616-0410-b53a-bc976706d245

Packets/DefaultBundle/EthernetPacket.cc

index 04cac5b..00ef6cb 100644 (file)
@@ -78,8 +78,7 @@ prefix_ void senf::EthernetPacketType::finalize(packet p)
     else
         if (p.next().is<LlcSnapPacket>())
             p->type_length() << p.next().data().size();
-        else
-            p->type_length() << 0;
+    // Do NOT reset type_length if the type is not known ... doing this will destroy read packets
 }
 
 prefix_ void senf::EthVLanPacketType::dump(packet p, std::ostream & os)