From: jkaeber Date: Tue, 27 Nov 2007 15:10:03 +0000 (+0000) Subject: Refactored VARIANT field. X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=a0549addac2f40a170cd51d1341600b3741703fa;p=senf.git Refactored VARIANT field. git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@539 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/MPEGDVBBundle/GREPacket.hh b/Packets/MPEGDVBBundle/GREPacket.hh index 0c63d87..6e29e82 100644 --- a/Packets/MPEGDVBBundle/GREPacket.hh +++ b/Packets/MPEGDVBBundle/GREPacket.hh @@ -43,7 +43,7 @@ namespace senf { */ struct GREChecksumParser : public PacketParserBase { # include SENF_PARSER() - SENF_PARSER_PRIVATE_FIELD ( checksum1_, Parse_UInt16 ); + SENF_PARSER_FIELD ( checksum1_, Parse_UInt16 ); SENF_PARSER_PRIVATE_FIELD ( reserved1_, Parse_UInt16 ); SENF_PARSER_FINALIZE(GREChecksumParser); }; @@ -63,7 +63,7 @@ namespace senf { private: Parse_UInt16 checksum() const /// only defined if checksum_present() == \c true - { return checksum_().get<1>(); } + { return checksum_().get<1>().checksum1_(); } }; /** \brief GRE packet