-rw-r--r-- | libopie2/opienet/opcap.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 @@ -109,66 +109,66 @@ class OPacketCapturer; * @code * OPacketCapturer* pcap = new OPacketCapturer(); * pcap->open( "eth0" ); * OPacket* p = pcap->next(); * OIPPacket* ip = (OIPPacket*) p->child( "IP" ); // returns 0, if no such child exists * odebug << "got ip packet from " << ip->fromIPAddress().toString() << " to " << ip->toIPAddress().toString() << oendl; * */ class OPacket : public QObject { Q_OBJECT friend class OPacketCapturer; friend QTextStream& operator<<( QTextStream& s, const OPacket& p ); public: OPacket( int datalink, packetheaderstruct, const unsigned char*, QObject* parent ); virtual ~OPacket(); 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 const unsigned char* _end; // end of pcap packet data private: class Private; Private *d; }; -QTextStream& operator<<( QTextStream& s, const OPacket& p ); +QTextStream& operator<<( QTextStream& s, const OPacket& p ); //FIXME: Revise /*====================================================================================== * OEthernetPacket - DLT_EN10MB frame *======================================================================================*/ class OEthernetPacket : public QObject { Q_OBJECT public: OEthernetPacket( const unsigned char*, const struct ether_header*, QObject* parent = 0 ); virtual ~OEthernetPacket(); OMacAddress sourceAddress() const; OMacAddress destinationAddress() const; int type() const; private: const struct ether_header* _ether; private: class Private; Private *d; }; |