X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FDefaultBundle%2FLlcSnapPacket.cc;h=1afc7ec45b9edc1e1eb11dc3f057fe0c48ddb833;hb=394ced7000128fef7e753caea1deda8d55dec8e2;hp=ae147125be420f434542d56bc40135863115d736;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Packets/DefaultBundle/LlcSnapPacket.cc b/senf/Packets/DefaultBundle/LlcSnapPacket.cc index ae14712..1afc7ec 100644 --- a/senf/Packets/DefaultBundle/LlcSnapPacket.cc +++ b/senf/Packets/DefaultBundle/LlcSnapPacket.cc @@ -31,27 +31,27 @@ #include #define prefix_ -///////////////////////////////cc.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// prefix_ void senf::LlcSnapPacketType::dump(packet p, std::ostream & os) { boost::io::ios_all_saver ias(os); os << "LLC/SNAP:\n" << std::hex << std::setfill('0') - << " LLC\n" - << " dsap : 0x" << unsigned(p->dsap()) << "\n" - << " ssap : 0x" << unsigned(p->ssap()) << "\n" - << " control id : 0x" << unsigned(p->ctrl()) << "\n" - << " SNAP\n" - << " protocol id : 0x" << std::setw(6) << unsigned(p->protocolId()) << "\n" - << " type/length : 0x" << std::setw(4) << unsigned(p->type_length()) << "\n"; + << " LLC\n" + << senf::fieldName(" dsap") << "0x" << unsigned(p->dsap()) << "\n" + << senf::fieldName(" ssap") << "0x" << unsigned(p->ssap()) << "\n" + << senf::fieldName(" control id") << "0x" << unsigned(p->ctrl()) << "\n" + << " SNAP\n" + << senf::fieldName(" protocol id") << "0x" << std::setw(6) << unsigned(p->protocolId()) << "\n" + << senf::fieldName(" type/length") << "0x" << std::setw(4) << unsigned(p->type_length()) << "\n"; } prefix_ senf::PacketInterpreterBase::factory_t senf::LlcSnapPacketType::nextPacketType(packet p) { if (p->type_length() >= 1536) { - PkReg_Entry const * e; - e = PacketRegistry::lookup( p->type_length(), nothrow ); + PacketRegistry::Entry const * e ( + PacketRegistry::lookup( p->type_length(), nothrow )); return e ? e->factory() : no_factory(); } if (p->type_length() <= 1500) @@ -69,7 +69,7 @@ prefix_ void senf::LlcSnapPacketType::finalize(packet p) } -///////////////////////////////cc.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_