Skip to content
Snippets Groups Projects
Commit 04964916 authored by jkaeber's avatar jkaeber
Browse files

Refactored VARIANT field.

parent ddc0a92d
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ namespace senf { ...@@ -43,7 +43,7 @@ namespace senf {
*/ */
struct GREChecksumParser : public PacketParserBase { struct GREChecksumParser : public PacketParserBase {
# include SENF_PARSER() # 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_PRIVATE_FIELD ( reserved1_, Parse_UInt16 );
SENF_PARSER_FINALIZE(GREChecksumParser); SENF_PARSER_FINALIZE(GREChecksumParser);
}; };
...@@ -63,7 +63,7 @@ namespace senf { ...@@ -63,7 +63,7 @@ namespace senf {
private: private:
Parse_UInt16 checksum() const /// only defined if checksum_present() == \c true Parse_UInt16 checksum() const /// only defined if checksum_present() == \c true
{ return checksum_().get<1>(); } { return checksum_().get<1>().checksum1_(); }
}; };
/** \brief GRE packet /** \brief GRE packet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment