git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@539
270642c3-0616-0410-b53a-bc976706d245
*/
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);
};
private:
Parse_UInt16 checksum() const /// only defined if checksum_present() == \c true
- { return checksum_().get<1>(); }
+ { return checksum_().get<1>().checksum1_(); }
};
/** \brief GRE packet