summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opienet/opcap.cpp2
-rw-r--r--libopie2/opienet/opcap.h10
2 files changed, 7 insertions, 5 deletions
diff --git a/libopie2/opienet/opcap.cpp b/libopie2/opienet/opcap.cpp
index c5df041..93176c0 100644
--- a/libopie2/opienet/opcap.cpp
+++ b/libopie2/opienet/opcap.cpp
@@ -56,8 +56,10 @@ namespace Net {
OPacket::OPacket( int datalink, packetheaderstruct header, const unsigned char* data, QObject* parent )
:QObject( parent, "Generic" ), _hdr( header ), _data( data )
{
+ //FIXME: Copy the data structure here, because it isn't persistent. Check that.
+
qDebug( "OPacket::OPacket(): (Len %d, CapLen %d)" /*, ctime((const time_t*) header.ts.tv_sec)*/, header.len, header.caplen );
_end = (unsigned char*) data + header.len;
//qDebug( "OPacket::data @ %0x, end @ %0x", data, _end );
diff --git a/libopie2/opienet/opcap.h b/libopie2/opienet/opcap.h
index 4ff8495..2dbe030 100644
--- a/libopie2/opienet/opcap.h
+++ b/libopie2/opienet/opcap.h
@@ -129,15 +129,15 @@ class OPacket : public QObject
timevalstruct timeval() const;
int caplen() const;
int len() const;
- QString dump( int = 32 ) const;
+ QString dump( int = 32 ) const; //FIXME: remove that
- void updateStats( QMap<QString,int>&, QObjectList* );
+ void updateStats( QMap<QString,int>&, QObjectList* ); //FIXME: Revise
- QString dumpStructure() const;
+ QString dumpStructure() const; //FIXME: Revise
private:
- QString _dumpStructure( QObjectList* ) const;
+ QString _dumpStructure( QObjectList* ) const; //FIXME: Revise
private:
const packetheaderstruct _hdr; // pcap packet header
const unsigned char* _data; // pcap packet data
@@ -146,9 +146,9 @@ class OPacket : public QObject
class Private;
Private *d;
};
-QTextStream& operator<<( QTextStream& s, const OPacket& p );
+QTextStream& operator<<( QTextStream& s, const OPacket& p ); //FIXME: Revise
/*======================================================================================
* OEthernetPacket - DLT_EN10MB frame
*======================================================================================*/