17 #ifndef HH_SENF_Packets_DefaultBundle_UDPPacket_ 18 #define HH_SENF_Packets_DefaultBundle_UDPPacket_ 1 38 # include SENF_FIXED_PARSER() 91 using mixin::nextPacketRange;
92 using mixin::initSize;
96 static void dump(packet p, std::ostream & os);
97 static void finalize(packet p);
senf::UInt16Parser length() const
Mixin to provide standard implementations for nextPacketRange and nextPacketType. ...
UDPPacketParser parser
typedef to the parser of UDP packet
senf::UInt16Parser destination() const
DefaultBundle packet registries public header.
#define SENF_PARSER_FIELD(name, type)
Define normal parser field.
ConcretePacket< UDPPacketType > packet
UDP packet typedef.
#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.
senf::UInt16Parser source() const
SENF_PACKET_PREVENT_TEMPLATE_INSTANTIATION(RadiotapPacket)
senf::UInt16Parser checksum() const
PacketTypeMixin< UDPPacketType > mixin
Parse 16bit unsigned byte aligned integer.
bool validateChecksum() const
validate header checksum
boost::uint16_t calcChecksum() const
calculate (pseudo-)header checksum
ConcretePacket< UDPPacketType > UDPPacket
UDP packet typedef.