summaryrefslogtreecommitdiff
path: root/libopie2/opienet/opcap.cpp
Side-by-side diff
Diffstat (limited to 'libopie2/opienet/opcap.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/opcap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libopie2/opienet/opcap.cpp b/libopie2/opienet/opcap.cpp
index 6ddd457..40aac2c 100644
--- a/libopie2/opienet/opcap.cpp
+++ b/libopie2/opienet/opcap.cpp
@@ -640,9 +640,9 @@ OWaveLanDataPacket::OWaveLanDataPacket( const unsigned char* end, const struct i
:QObject( parent, "802.11 Data" ), _header( data )
{
- //qDebug( "size of header = %d", sizeof( struct ieee_802_11_data_header ) );
- //qDebug( "header: %0x", data );
+ qDebug( "OWaveLanDataPacket::OWaveLanDataPacket(): decoding frame..." );
+
const unsigned char* payload = (const unsigned char*) data + sizeof( struct ieee_802_11_data_header );
- //qDebug( "payload: %0x", payload );
+ #warning The next line works for most cases, but can not be correct generally!
if (!( ( (OWaveLanPacket*) this->parent())->duration() )) payload -= 6; // compensation for missing last address
@@ -661,5 +661,5 @@ OWaveLanDataPacket::~OWaveLanDataPacket()
OLLCPacket::OLLCPacket( const unsigned char* end, const struct ieee_802_11_802_2_header* data, QObject* parent )
- :QObject( parent, "802.11 802_2" ), _header( data )
+ :QObject( parent, "802.11 LLC" ), _header( data )
{
qDebug( "OLLCPacket::OLLCPacket(): decoding frame..." );