21 #include <boost/io/ios_state.hpp> 34 template <
typename PacketType>
37 boost::io::ios_all_saver ias(os);
39 << std::hex << std::setfill(
'0') << std::right
48 template <
typename PacketType>
51 switch (p->pppProtocol()) {
54 return IPv4Packet::factory();
58 return IPv6Packet::factory();
IPv6Packet public header.
static factory_t nextPacketType(packet p)
static void dump(packet p, std::ostream &os)
std::string fieldName(std::string const &s)
SENF_PACKET_INSTANTIATE_TEMPLATE(senf::PPPoEDPacket)
void type
Type of the packet.
Protocol specific packet handle.
static const EtherTypes::key_t etherType
IPv4Packet public header.
static const EtherTypes::key_t etherType
SENF_PACKET_REGISTRY_REGISTER(senf::EtherTypes, senf::PPPoEDPacketType::etherType, senf::PPPoEDPacket)
Factory const * factory_t