// Custom includes
#include <iomanip>
-#include <senf/Utils/hexdump.hh>
#include <senf/Packets/DefaultBundle/EthernetPacket.hh>
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
-//namespace {
-// senf::PacketRegistry<senf::EtherTypes>::RegistrationProxy<senf::EthVLanPacketType>
-// registerEthVLanPacket(0x8100);
-//}
-
-
prefix_ boost::uint32_t senf::SNDUPacketParser::calcCrc()
const
{
{
os << "SNDUPacket:\n"
<< std::dec
- << " d_bit : " << p->d_bit() << "\n"
- << " length : " << unsigned(p->length()) << "\n"
+ << senf::fieldName("d_bit") << p->d_bit() << "\n"
+ << senf::fieldName("length") << unsigned(p->length()) << "\n"
<< std::hex
- << " type : 0x" << unsigned(p->type()) << "\n"
+ << senf::fieldName("type") << "0x" << unsigned(p->type()) << "\n"
<< std::dec
- << " crc : " << unsigned(p->crc()) << "\n";
+ << senf::fieldName("crc") << unsigned(p->crc()) << "\n";
}
prefix_ senf::PacketParserBase::size_type senf::SNDUPacketType::initSize()