X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FMPEGDVBBundle%2FGREPacket.hh;h=f056b51e54fc2726011afe05fb7a807eb6dc41ed;hb=bbff2057f39e475b00e598cae018c68db0e16a82;hp=6e29e82871af245dcda18418c6f1aed698df809a;hpb=a0549addac2f40a170cd51d1341600b3741703fa;p=senf.git diff --git a/Packets/MPEGDVBBundle/GREPacket.hh b/Packets/MPEGDVBBundle/GREPacket.hh index 6e29e82..f056b51 100644 --- a/Packets/MPEGDVBBundle/GREPacket.hh +++ b/Packets/MPEGDVBBundle/GREPacket.hh @@ -29,6 +29,7 @@ // Custom includes #include #include "../../Packets/Packets.hh" +#include "../DefaultBundle/EthernetPacket.hh" //#include "GREPacket.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -78,17 +79,20 @@ namespace senf { */ struct GREPacketType : public PacketTypeBase, - public PacketTypeMixin + public PacketTypeMixin { - typedef PacketTypeMixin mixin; + typedef PacketTypeMixin mixin; typedef ConcretePacket packet; typedef Parse_GREPacket parser; using mixin::nextPacketRange; + using mixin::nextPacketType; using mixin::init; using mixin::initSize; static void dump(packet p, std::ostream & os); + static EtherTypes::key_t nextPacketKey(packet p) { return p->protocol_type(); } + static void finalize(packet p) { p->protocol_type() << key(p.next()); } }; /** \brief GRE packet typedef */