X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80211Bundle%2FWLANBeaconPacket.cc;h=ad49dbc1b75e77d79d021957eedb35dffa1c7db1;hb=9ffdaae4804503c4f36a53747c852a87ee626b9e;hp=d91f059aac6214f8c17280a9d7f20fae2f76cbec;hpb=d1284f9a03b4e3a8624842ecd39304403f53a960;p=senf.git diff --git a/senf/Packets/80211Bundle/WLANBeaconPacket.cc b/senf/Packets/80211Bundle/WLANBeaconPacket.cc index d91f059..ad49dbc 100644 --- a/senf/Packets/80211Bundle/WLANBeaconPacket.cc +++ b/senf/Packets/80211Bundle/WLANBeaconPacket.cc @@ -1,9 +1,10 @@ -// $Id: WLANPacket.cc 1449 2009-09-25 23:03:48Z g0dil $ +// $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2009 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Christian Niephaus +// Thorsten Horstmann // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -20,7 +21,7 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Definition of non-inline non-template functions +// Definition of 802.11 WLAN Beacon Packet non-inline non-template functions // Custom includes #include "WLANBeaconPacket.hh" @@ -29,17 +30,24 @@ #include #define prefix_ - -namespace { -} +///////////////////////////////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"; + 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::iterator i = ieListContainer.begin(); i != ieListContainer.end(); ++i) + (*i).dump( os); } +///////////////////////////////cc.e//////////////////////////////////////// #undef prefix_