summaryrefslogtreecommitdiff
path: root/libopie2/opienet/opcap.h
authormickeyl <mickeyl>2003-05-06 23:01:10 (UTC)
committer mickeyl <mickeyl>2003-05-06 23:01:10 (UTC)
commitde62ac94791a969d950fc471b465d4f03267ae01 (patch) (side-by-side diff)
treea43fa025de468c92d0705657fc950cfcf8151518 /libopie2/opienet/opcap.h
parent9490e91d3876a8280f3f9a3839fddf95b957b879 (diff)
downloadopie-de62ac94791a969d950fc471b465d4f03267ae01.zip
opie-de62ac94791a969d950fc471b465d4f03267ae01.tar.gz
opie-de62ac94791a969d950fc471b465d4f03267ae01.tar.bz2
add two minor functions in the pcap interface
Diffstat (limited to 'libopie2/opienet/opcap.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/opcap.h20
1 files changed, 18 insertions, 2 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
@@ -542,7 +542,7 @@ class OPacketCapturer : public QObject
*/
int dataLink() const;
/**
- * @returns the filedescriptor of the packet capturer. This is only useful, if
+ * @returns the file descriptor of the packet capturer. This is only useful, if
* not using the socket notifier, e.g. without an application object.
*/
int fileno() const;
@@ -564,7 +564,23 @@ class OPacketCapturer : public QObject
* @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: