X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FDefaultBundle%2FIPv6Extensions.hh;h=5f6ba130abb9f298b8e236992a4da97670fea4c5;hb=25976ed67c66d30811fa0a01043e50347e9d1e69;hp=197f5c9264323d5c25a58fbd1ffabfa65980fe19;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Packets/DefaultBundle/IPv6Extensions.hh b/senf/Packets/DefaultBundle/IPv6Extensions.hh index 197f5c9..5f6ba13 100644 --- a/senf/Packets/DefaultBundle/IPv6Extensions.hh +++ b/senf/Packets/DefaultBundle/IPv6Extensions.hh @@ -27,8 +27,12 @@ #define HH_SENF_Packets_DefaultBundle_IPv6Extensions_ 1 // Custom includes -#include "IPv6Packet.hh" +#include +#include +#include +#include +#include "IPv6Packet.hh" //#include "IPv6Extensions.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -225,13 +229,19 @@ The Type 0 Routing header has the following format: (RFC 2460) RFC 2460 */ -// Hop-By-Hop skeleton without Options +// Hop-By-Hop Extension Header struct IPv6PacketParserExtension_HopByHop : public PacketParserBase { # include SENF_PARSER() SENF_PARSER_FIELD ( nextHeader, UInt8Parser ); SENF_PARSER_FIELD ( headerLength, UInt8Parser ); - + + typedef detail::FixedAuxParserPolicy ListOptionTypeAuxPolicy; + typedef detail::ListOptionTypeParser_Policy ListOptionTypePolicy; + typedef ListParser ListOptionTypeParser; + + SENF_PARSER_FIELD ( options, ListOptionTypeParser); + SENF_PARSER_FINALIZE ( IPv6PacketParserExtension_HopByHop ); }; @@ -295,6 +305,7 @@ The Type 0 Routing header has the following format: (RFC 2460) // Destination Options skeleton without TLV-Options struct IPv6PacketParserExtension_Destination : public PacketParserBase { + # include SENF_PARSER() SENF_PARSER_FIELD ( nextHeader, UInt8Parser ); SENF_PARSER_FIELD ( headerLength, UInt8Parser );