X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80211Bundle%2FWLANBeaconPacket.hh;h=25b631b49e637dc9c90ed1831446e963183e978f;hb=5cb66935d4b2973ea0fe7487b862b9ddc31648f4;hp=fcfe80d06aa9dd6f8610de2191731ca222e616ea;hpb=a3f9296f648c4991a1576d4200abfdc72788bc16;p=senf.git diff --git a/senf/Packets/80211Bundle/WLANBeaconPacket.hh b/senf/Packets/80211Bundle/WLANBeaconPacket.hh index fcfe80d..25b631b 100644 --- a/senf/Packets/80211Bundle/WLANBeaconPacket.hh +++ b/senf/Packets/80211Bundle/WLANBeaconPacket.hh @@ -28,57 +28,62 @@ #define HH_SENF_Packets_80211Bundle_WLANBeaconPacket_ 1 // Custom includes -#include #include "InformationElements.hh" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace senf { struct WLANBeaconPacketParser : public PacketParserBase { # include SENF_PARSER() - SENF_PARSER_FIELD( timestamp, UInt64LSBParser ); - SENF_PARSER_FIELD( beaconInterval, UInt16LSBParser ); - SENF_PARSER_SKIP(2,2); //capability flags + SENF_PARSER_FIELD( timestamp, UInt64LSBParser ); + SENF_PARSER_FIELD( beaconInterval, UInt16LSBParser ); + SENF_PARSER_SKIP ( 2,2); //capability flags + + SENF_PARSER_FIELD( ssidIE, WLANSSIDInfoElementParser ); + WLANSSIDInfoElementParser::value_t ssid() const { return ssidIE().value(); } + + SENF_PARSER_FIELD( supportedRatesIE, WLANSupportedRatesInfoElementParser ); + + SENF_PARSER_LIST ( ieList, packetSize(), WLANGenericInfoElementParser ); - //SSID element -// SENF_PARSER_FIELD() - SENF_PARSER_FINALIZE( WLANBeaconPacketParser ); - }; - + /** \brief WLAN Beacon frame packet \par Packet type (typedef): - \refWLANBeaconPacket + \ref WLANBeaconPacket \par Fields: \ingroup protocolbundle_80211 */ struct WLANBeaconPacketType - : public senf::PacketTypeBase, - public senf::PacketTypeMixin + : public PacketTypeBase, + public PacketTypeMixin { - typedef senf::PacketTypeMixin mixin; - typedef senf::ConcretePacket packet; + typedef PacketTypeMixin mixin; + typedef ConcretePacket packet; typedef WLANBeaconPacketParser parser; using mixin::init; using mixin::initSize; - using senf::PacketTypeBase::nextPacketRange; + using PacketTypeBase::nextPacketRange; static void dump(packet p, std::ostream &os); }; + /** \brief WLAN Beacon frame packet typedef + \ingroup protocolbundle_80211 + */ typedef ConcretePacket WLANBeaconPacket; } -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// //#include "WLANBeaconPacket.cci" //#include "WLANBeaconPacket.ct" //#include "WLANBeaconPacket.cti"