X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2F80211Bundle%2FWLANPacket.hh;h=bbed6ea19ea41ecf3a73b547ce1080e6371d5819;hb=d498c7507e2eaa191e859ae525df97dc257e0d7a;hp=f7c5688b880be602a860a299a770e11b69faa2c8;hpb=0cfb397285c36522faa97c801e6f8332fdd539cf;p=senf.git diff --git a/Packets/80211Bundle/WLANPacket.hh b/Packets/80211Bundle/WLANPacket.hh index f7c5688..bbed6ea 100644 --- a/Packets/80211Bundle/WLANPacket.hh +++ b/Packets/80211Bundle/WLANPacket.hh @@ -39,11 +39,12 @@ namespace senf struct WLANPacket_MgtFrameParser : public senf::PacketParserBase { # include SENF_FIXED_PARSER() - - SENF_PARSER_PRIVATE_BITFIELD ( subtype, 4, unsigned ); - SENF_PARSER_SKIP_BITS ( 4 ); //skip type and version + + SENF_PARSER_PRIVATE_BITFIELD ( subtype, 4, unsigned ); //( data().size()-4 ); } @@ -197,6 +201,17 @@ namespace senf }; + /** \brief WLAN packet + + \par Packet type (typedef): + \ref WLANPacket + + \par Fields: + \ref WLANPacketParser + \image html WLANPacket.png + + \ingroup protocolbundle_80211 + */ struct WLANPacketType : public senf::PacketTypeBase, public senf::PacketTypeMixin @@ -205,10 +220,12 @@ namespace senf typedef senf::ConcretePacket packet; typedef WLANPacketParser parser; -// using mixin::nextPacketRange; + using mixin::init; using mixin::initSize; - using senf::PacketTypeBase::nextPacketRange;; +// using senf::PacketTypeBase::nextPacketRange; + static optional_range nextPacketRange(packet p); + static factory_t nextPacketType(packet p); static void dump(packet p, std::ostream &os); // static PacketParserBase::size_type initSize();