X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FDefaultBundle%2FUDPPacket.hh;h=8b1aa70f996a2a5e6ff357917838c2baa025f4a4;hb=a58be9dbd48369f2c0469b5c214406d26f1feefa;hp=2c662d336373d34d91f106b4eabf3cd2e48eb162;hpb=0c7cac49ccb989bf0bcd017db71158ab998d4220;p=senf.git diff --git a/Packets/DefaultBundle/UDPPacket.hh b/Packets/DefaultBundle/UDPPacket.hh index 2c662d3..8b1aa70 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 @@ -23,8 +23,8 @@ /** \file \brief UDPPacket public header */ -#ifndef HH_UDPPacket_ -#define HH_UDPPacket_ 1 +#ifndef HH_SENF_Packets_DefaultBundle_UDPPacket_ +#define HH_SENF_Packets_DefaultBundle_UDPPacket_ 1 // Custom includes #include "../../Packets/Packets.hh" @@ -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;