X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80211Bundle%2FWLANBeaconPacket.cc;h=d18abf1e016677d5006b4ce7d87b94aa6e89f6ed;hb=5cb66935d4b2973ea0fe7487b862b9ddc31648f4;hp=327a838cf3782cad4f45fbfc10221bac93dbb8d1;hpb=a3f9296f648c4991a1576d4200abfdc72788bc16;p=senf.git diff --git a/senf/Packets/80211Bundle/WLANBeaconPacket.cc b/senf/Packets/80211Bundle/WLANBeaconPacket.cc index 327a838..d18abf1 100644 --- a/senf/Packets/80211Bundle/WLANBeaconPacket.cc +++ b/senf/Packets/80211Bundle/WLANBeaconPacket.cc @@ -23,23 +23,30 @@ // Definition of 802.11 WLAN Beacon Packet non-inline non-template functions -// Custom includes #include "WLANBeaconPacket.hh" -#include +// Custom includes #include #define prefix_ -///////////////////////////////cc.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// prefix_ void senf::WLANBeaconPacketType::dump(packet p, std::ostream &os) { - boost::io::ios_all_saver ias(os); - os << "WLAN Beacon:\n" - << senf::fieldName("timestamp") << unsigned( p->timestamp()) << "\n"; + 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"; + p->ssidIE().dump( os); + p->supportedRatesIE().dump( os); + os << " Optional Information Elements:\n"; + typedef parser::ieList_t::container ieListContainer_t; + ieListContainer_t ieListContainer (p->ieList()); + for (ieListContainer_t::const_iterator i = ieListContainer.begin(); i != ieListContainer.end(); ++i) + i->dump( os); } -///////////////////////////////cc.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_