Packets/80211Bundle: RadiotapPacket fixed undefined reference bug with debug=1
tho [Wed, 19 Jan 2011 09:56:19 +0000 (09:56 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1766 270642c3-0616-0410-b53a-bc976706d245

senf/Packets/80211Bundle/RadiotapPacket.cc
senf/Packets/80211Bundle/RadiotapPacket.test.cc
senf/Packets/80211Bundle/WLANPacket.cc

index d732aad..d9d97bc 100644 (file)
@@ -291,7 +291,9 @@ prefix_ void senf::RadiotapPacketType::dump(packet p, std::ostream &os)
 
 prefix_ void senf::RadiotapPacketType::init(packet p)
 {
-    p->length() << RadiotapPacketParser_Header::fixed_bytes;
+    // ?? Why the heck do we need the +0? Otherwise we get an
+    // 'undefined reference to 'RadiotapPacketParser_Header::fixed_bytes'
+    p->length() << RadiotapPacketParser_Header::fixed_bytes+0;
 }
 
 prefix_ senf::PacketInterpreterBase::factory_t senf::RadiotapPacketType::nextPacketType(packet p)
index e05f3e8..11118b0 100644 (file)
@@ -301,7 +301,7 @@ SENF_AUTO_UNIT_TEST(RadiotapPacket_parsetest)
                       "  antenna                 : 1\n"
                       "  rx flags                : \n"
                       "  fcs                     : 240700832\n"
-                      "802.11 MAC Mangement Frame:\n"
+                      "802.11 MAC Management Frame:\n"
                       "  version                 : 0\n"
                       "  type                    : 0\n"
                       "  subtype                 : 8\n"
index f59acbc..fd3355a 100644 (file)
@@ -64,7 +64,7 @@ prefix_ void senf::WLANPacket_MgtFrameParser::sequenceNumber(boost::uint16_t sn)
 prefix_ void senf::WLANPacket_MgtFrameType::dump(packet p, std::ostream &os)
 {
     boost::io::ios_all_saver ias(os);
-    os << "802.11 MAC Mangement Frame:\n";
+    os << "802.11 MAC Management Frame:\n";
     dumpBase(p.parser(), os);
     os << senf::fieldName("destination")           << p->destinationAddress() << "\n"
        << senf::fieldName("source")                << p->sourceAddress() << "\n"