// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Stefan Bund <g0dil@berlios.de>
//
// 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
\see UDPPacketType
<a href="http://tools.ietf.org/html/rfc768">RFC 768</a>
*/
- 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;
\ref UDPPacket
\par Fields:
- \ref Parse_UDP
+ \ref UDPPacketParser
\par Finalize action:
Set \a length from payload size\n
#ifndef DOXYGEN
typedef PacketTypeMixin<UDPPacketType> mixin;
typedef ConcretePacket<UDPPacketType> packet;
- typedef Parse_UDP parser;
+ typedef UDPPacketParser parser;
#endif
using mixin::nextPacketRange;
using mixin::initSize;