From: g0dil Date: Tue, 11 Dec 2007 14:10:17 +0000 (+0000) Subject: Packets/DefaultBundle: BUGFIX: Remove invalid EthernetPacket::type_length field overw... X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=6ec7989c834d8e5064f505af9f3294679f62b18a;p=senf.git Packets/DefaultBundle: BUGFIX: Remove invalid EthernetPacket::type_length field overwrite in finalize() git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@554 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/DefaultBundle/EthernetPacket.cc b/Packets/DefaultBundle/EthernetPacket.cc index 04cac5b..00ef6cb 100644 --- a/Packets/DefaultBundle/EthernetPacket.cc +++ b/Packets/DefaultBundle/EthernetPacket.cc @@ -78,8 +78,7 @@ prefix_ void senf::EthernetPacketType::finalize(packet p) else if (p.next().is()) 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)