summaryrefslogtreecommitdiff
path: root/libopie2/opienet/opcap.h
Side-by-side diff
Diffstat (limited to 'libopie2/opienet/opcap.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opienet/opcap.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/libopie2/opienet/opcap.h b/libopie2/opienet/opcap.h
index 5a50d9b..ad5b07c 100644
--- a/libopie2/opienet/opcap.h
+++ b/libopie2/opienet/opcap.h
@@ -555,25 +555,41 @@ class OPacketCapturer : public QObject
* Open the packet capturer to capture packets in live-mode from @a interface.
* If a @a filename is given, all captured packets are output to a tcpdump-compatible capture file.
*/
bool open( const QString& interface, const QString& filename = QString::null );
/**
* Open the packet capturer to capture packets in offline-mode from @a file.
*/
bool open( const QFile& file );
/**
* @returns true if the packet capturer is open
*/
bool isOpen() const;
-
+ /**
+ * @returns the snapshot length of this packet capturer
+ */
+ int snapShot() const;
+ /**
+ * @returns true if the input capture file has a different byte-order
+ * than the byte-order of the running system.
+ */
+ bool swapped() const;
+ /**
+ * @returns the libpcap version string used to write the input capture file.
+ */
+ QString version() const;
+ /**
+ * @returns the packet statistic database.
+ * @see QMap
+ */
const QMap<QString,int>& statistics() const;
signals:
/**
* This signal is emitted, when a packet has been received.
*/
void receivedPacket( OPacket* );
protected slots:
void readyToReceive();
protected: