Search:

SENF Extensible Network Framework

  • Home
  • Download
  • Wiki
  • BerliOS
  • ChangeLog
  • Browse SVN
  • Bug Tracker
  • Overview
  • Examples
  • HowTos
  • Glossary
  • PPI
  • Packets
  • Scheduler
  • Socket
  • Utils
  • Console
  • Daemon
  • Logger
  • Termlib
  • Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

80211Bundle/WLANBeaconPacket.cc

Go to the documentation of this file.
00001 // $Id: WLANBeaconPacket.cc 1772 2011-03-10 12:45:21Z tho $
00002 //
00003 // Copyright (C) 2009
00004 // Fraunhofer (FOKUS)
00005 // Competence Center NETwork research (NET), St. Augustin, GERMANY
00006 //     Christian Niephaus <cni@berlios.de>
00007 //     Thorsten Horstmann <tho@berlios.de>
00008 //
00009 // This program is free software; you can redistribute it and/or modify
00010 // it under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation; either version 2 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // This program is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with this program; if not, write to the
00021 // Free Software Foundation, Inc.,
00022 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 
00024 // Definition of 802.11 WLAN Beacon Packet non-inline non-template functions
00025 
00026 #include "WLANBeaconPacket.hh"
00027 
00028 // Custom includes
00029 #include <boost/io/ios_state.hpp>
00030 
00031 #define prefix_
00032 //-/////////////////////////////////////////////////////////////////////////////////////////////////
00033 
00034 prefix_ void senf::WLANBeaconPacketType::dump(packet p, std::ostream & os)
00035 {
00036     boost::io::ios_all_saver ias(os);
00037     os << "WLAN beacon frame:\n"
00038        << senf::fieldName("timestamp")      << unsigned( p->timestamp())      << "\n"
00039        << senf::fieldName("beaconInterval") << unsigned( p->beaconInterval()) << "\n";
00040     p->ssidIE().dump( os);
00041     p->supportedRatesIE().dump( os);
00042     os << "  Optional Information Elements:\n";
00043     typedef parser::ieList_t::container ieListContainer_t;
00044     ieListContainer_t ieListContainer (p->ieList());
00045     for (ieListContainer_t::const_iterator i = ieListContainer.begin(); i != ieListContainer.end(); ++i)
00046         i->dump( os);
00047 }
00048 
00049 //-/////////////////////////////////////////////////////////////////////////////////////////////////
00050 #undef prefix_
00051 
00052 
00053 // Local Variables:
00054 // mode: c++
00055 // fill-column: 100
00056 // c-file-style: "senf"
00057 // indent-tabs-mode: nil
00058 // ispell-local-dictionary: "american"
00059 // compile-command: "scons -u test"
00060 // comment-column: 40
00061 // End:

Contact: senf-dev@lists.berlios.de | © 2006-2010 Fraunhofer Institute for Open Communication Systems, Network Research