X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FDefaultBundle%2FUDPPacket.hh;h=5ea93db33ef6fd6dae0e2017a7ea56ee003d2d55;hb=2c4c9deecc7491fbfc916aeb41074dcb76e8a2c2;hp=615c5308e3a3afedcd4fc1bc65284238c7015764;hpb=d53c168dbfd70ffea9ebad8953193163e113ff3a;p=senf.git diff --git a/Packets/DefaultBundle/UDPPacket.hh b/Packets/DefaultBundle/UDPPacket.hh index 615c530..5ea93db 100644 --- a/Packets/DefaultBundle/UDPPacket.hh +++ b/Packets/DefaultBundle/UDPPacket.hh @@ -35,30 +35,31 @@ namespace senf { Parser implementing the UDP header. The fields implemented are: - - - - - - -
Field nameParser type
source\ref Parse_16bit
destination\ref Parse_16bit
length\ref Parse_16bit
crc\ref Parse_16bit
- \see UDPPacketType RFC 768 */ struct Parse_UDP : public PacketParserBase { - SENF_PACKET_PARSER_INIT(Parse_UDP); + typedef Parse_UInt16 Parse_16bit; - /////////////////////////////////////////////////////////////////////////// +# ifndef DOXYGEN - typedef Parse_UInt16 Parse_16bit; + SENF_PACKET_PARSER_INIT(Parse_UDP); SENF_PACKET_PARSER_DEFINE_FIXED_FIELDS( ((Field)( source, Parse_16bit )) ((Field)( destination, Parse_16bit )) ((Field)( length, Parse_16bit )) ((Field)( crc, Parse_16bit )) ); + +# else + + Parse_16bit source(); + Parse_16bit destination(); + Parse_16bit length(); + Parse_16bit crc(); + +# endif }; /** \brief UDP packet