Packets/WLANPacket: fixed bug in dump method
cni [Mon, 26 Jan 2009 13:53:54 +0000 (13:53 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1077 270642c3-0616-0410-b53a-bc976706d245

Packets/80211Bundle/WLANPacket.cc

index 2f1c148..675a09b 100644 (file)
@@ -91,7 +91,7 @@ prefix_ void senf::WLANPacketType::dump(packet p, std::ostream &os)
        << "  Retransmission : " << unsigned( p->retry()) << "\n"
        << "  Duration       : " << unsigned( p->duration()) << "\n";
     if (p->is_mgtFrame()) {
-        os << "  Management-Frame:\n" 
+        os << "  Management-Frame:\n"
            << "    BSSID               : " << p->mgtFrame().bssid() << "\n"
            << "    Destination Address : " << p->mgtFrame().destinationAddress() << "\n"
            << "    Source Address      : " << p->mgtFrame().sourceAddress() << "\n"
@@ -109,8 +109,8 @@ prefix_ void senf::WLANPacketType::dump(packet p, std::ostream &os)
     }
     if (p->is_dataFrame()) {
         os << "  Data-Frame:\n"
-           << "    Sequence Number     : " << unsigned( p->mgtFrame().sequenceNumber()) << "\n"
-           << "    Fragment Number     : " << unsigned( p->mgtFrame().fragmentNumber()) << "\n";
+           << "    Sequence Number     : " << unsigned( p->dataFrame().sequenceNumber()) << "\n"
+           << "    Fragment Number     : " << unsigned( p->dataFrame().fragmentNumber()) << "\n";
     }
 };