#include "LlcSnapPacket.hh"
#include <iomanip>
#include <boost/io/ios_state.hpp>
+#include <senf/Utils/Format.hh>
#define prefix_
-///////////////////////////////cc.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
namespace {
SENF_PACKET_REGISTRY_REGISTER( senf::EtherTypes, 0x8100, senf::EthVLanPacket);
}
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
// senf::EthernetPacketType
prefix_ void senf::EthernetPacketType::dump(packet p, std::ostream & os)
os << ": \n"
<< senf::fieldName("destination") << p->destination() << "\n"
<< senf::fieldName("source") << p->source() << "\n"
- << senf::fieldName("type/length") << senf::prettyNumber(p->type_length().value()) << "\n";
+ << senf::fieldName("type/length") << senf::format::dumpint(p->type_length().value()) << "\n";
}
prefix_ senf::PacketInterpreterBase::factory_t senf::EthernetPacketType::nextPacketType(packet p)
<< senf::fieldName("cfi") << p->cfi() << "\n"
<< senf::fieldName("vlan-ID") << p->vlanId() << "\n"
<< senf::fieldName("ethertype")
- << " 0x" << std::hex << std::setw(4) << std::setfill('0') << p->type() << "\n";
+ << " 0x" << std::hex << std::setw(4) << std::setfill('0') << std::right << p->type() << "\n";
}
prefix_ void senf::EthVLanPacketType::finalize(packet p)
}
-///////////////////////////////cc.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
#undef prefix_
\f