Packets: extended description of bad_cast exception in Packet.as()
[senf.git] / senf / Packets / 80211Bundle / WLANBeaconPacket.hh
index 3451770..750c4cf 100644 (file)
 #define HH_SENF_Packets_80211Bundle_WLANBeaconPacket_ 1
 
 // Custom includes
-#include <senf/Packets/Packets.hh>
 #include "InformationElements.hh"
 
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 namespace senf {
 
     struct WLANBeaconPacketParser : public PacketParserBase
@@ -44,16 +43,19 @@ namespace senf {
 
         SENF_PARSER_FIELD( ssidIE, WLANSSIDInfoElementParser );
         WLANSSIDInfoElementParser::value_t ssid() const { return ssidIE().value(); }
-        
+
+        SENF_PARSER_FIELD( supportedRatesIE, WLANSupportedRatesInfoElementParser );
+
+        SENF_PARSER_LIST ( ieList, packetSize(), WLANGenericInfoElementParser );
+
         SENF_PARSER_FINALIZE( WLANBeaconPacketParser );
-        
     };
 
+
     /** \brief WLAN Beacon frame packet
 
         \par Packet type (typedef):
-            \refWLANBeaconPacket
+            \ref WLANBeaconPacket
 
         \par Fields:
 
@@ -71,14 +73,17 @@ namespace senf {
         using mixin::initSize;
         using PacketTypeBase::nextPacketRange;
 
-        static void dump(packet p, std::ostream &os);
+        static void dump(packet p, std::ostream & os);
     };
 
+    /** \brief WLAN Beacon frame packet typedef
+        \ingroup protocolbundle_80211
+     */
     typedef ConcretePacket<WLANBeaconPacketType> WLANBeaconPacket;
 
 }
 
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 //#include "WLANBeaconPacket.cci"
 //#include "WLANBeaconPacket.ct"
 //#include "WLANBeaconPacket.cti"