X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FDefaultBundle%2FUDPPacket.hh;h=dc82ea2ffa2acd0317f435f80cd29fabc0cb5118;hb=6a0836b7f462d3d77b79b35638cdbf4c9d4202fc;hp=2c662d336373d34d91f106b4eabf3cd2e48eb162;hpb=0c7cac49ccb989bf0bcd017db71158ab998d4220;p=senf.git diff --git a/Packets/DefaultBundle/UDPPacket.hh b/Packets/DefaultBundle/UDPPacket.hh index 2c662d3..dc82ea2 100644 --- a/Packets/DefaultBundle/UDPPacket.hh +++ b/Packets/DefaultBundle/UDPPacket.hh @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -38,19 +38,19 @@ namespace senf { Parser implementing the UDP header. The fields implemented are: - \see UDPPacketType + \see UDPPacketType \n RFC 768 */ - struct Parse_UDP : public PacketParserBase + struct UDPPacketParser : public PacketParserBase { # include SENF_FIXED_PARSER() - SENF_PARSER_FIELD( source, senf::Parse_UInt16 ); - SENF_PARSER_FIELD( destination, senf::Parse_UInt16 ); - SENF_PARSER_FIELD( length, senf::Parse_UInt16 ); - SENF_PARSER_FIELD( checksum, senf::Parse_UInt16 ); + SENF_PARSER_FIELD( source, senf::UInt16Parser ); + SENF_PARSER_FIELD( destination, senf::UInt16Parser ); + SENF_PARSER_FIELD( length, senf::UInt16Parser ); + SENF_PARSER_FIELD( checksum, senf::UInt16Parser ); - SENF_PARSER_FINALIZE(Parse_UDP); + SENF_PARSER_FINALIZE(UDPPacketParser); boost::uint16_t calcChecksum() const; @@ -65,7 +65,7 @@ namespace senf { \ref UDPPacket \par Fields: - \ref Parse_UDP + \ref UDPPacketParser \par Finalize action: Set \a length from payload size\n @@ -80,7 +80,7 @@ namespace senf { #ifndef DOXYGEN typedef PacketTypeMixin mixin; typedef ConcretePacket packet; - typedef Parse_UDP parser; + typedef UDPPacketParser parser; #endif using mixin::nextPacketRange; using mixin::initSize;