17 #ifndef HH_SENF_Packets_DefaultBundle_PPPoEPacket_ 18 #define HH_SENF_Packets_DefaultBundle_PPPoEPacket_ 1 35 # include SENF_FIXED_PARSER() 54 template <
typename PacketType>
63 using mixin::nextPacketRange;
64 using mixin::initSize;
67 static factory_t nextPacketType(packet p);
68 static void dump(packet p, std::ostream & os);
UInt16Parser pppProtocol() const
#define SENF_PARSER_BITFIELD(name, bits, type)
Define bit-field.
UInt16Parser sessionId() const
Mixin to provide standard implementations for nextPacketRange and nextPacketType. ...
Parse 8bit unsigned byte aligned integer.
DefaultBundle packet registries public header.
ConcretePacket< PPPoESPacketType > PPPoESPacket
#define SENF_PARSER_FIELD(name, type)
Define normal parser field.
#define SENF_PARSER_FINALIZE(name)
Generate parser control members.
void dump(std::ostream &os, DirectoryNode &dir=root())
Protocol specific packet handle.
Helper base-class implementing the PacketType interface.
#define SENF_PARSER_INIT()
Define parser initialization routine.
SENF_PACKET_PREVENT_TEMPLATE_INSTANTIATION(RadiotapPacket)
ConcretePacket< PacketType > packet
PacketTypeMixin< PacketType, EtherTypes > mixin
senf::UIntFieldParser<?,?+4 > type() const
senf::UIntFieldParser<?,?+4 > version() const
PacketInterpreterBase::factory_t factory_t
ConcretePacket< PPPoEDPacketType > PPPoEDPacket
Parse 16bit unsigned byte aligned integer.
UInt16Parser length() const