Packets: extended description of bad_cast exception in Packet.as()
[senf.git] / senf / Packets / 80211Bundle / WLANBeaconPacket.cc
index ade514e..04eee2f 100644 (file)
 
 // Definition of 802.11 WLAN Beacon Packet non-inline non-template functions
 
-// Custom includes
 #include "WLANBeaconPacket.hh"
 
-#include <senf/Packets/Packets.hh>
+// Custom includes
 #include <boost/io/ios_state.hpp>
 
 #define prefix_
-///////////////////////////////cc.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
-prefix_ void senf::WLANBeaconPacketType::dump(packet p, std::ostream &os)
+prefix_ void senf::WLANBeaconPacketType::dump(packet p, std::ostream & os)
 {
-    boost::io::ios_all_saver ias(os);    
+    boost::io::ios_all_saver ias(os);
     os << "WLAN beacon frame:\n"
        << senf::fieldName("timestamp")      << unsigned( p->timestamp())      << "\n"
        << senf::fieldName("beaconInterval") << unsigned( p->beaconInterval()) << "\n";
@@ -43,11 +42,11 @@ prefix_ void senf::WLANBeaconPacketType::dump(packet p, std::ostream &os)
     os << "  Optional Information Elements:\n";
     typedef parser::ieList_t::container ieListContainer_t;
     ieListContainer_t ieListContainer (p->ieList());
-    for (ieListContainer_t::iterator i = ieListContainer.begin(); i != ieListContainer.end(); ++i)
+    for (ieListContainer_t::const_iterator i = ieListContainer.begin(); i != ieListContainer.end(); ++i)
         i->dump( os);
 }
 
-///////////////////////////////cc.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 
 \f