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.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/libopie2/opienet/opcap.h b/libopie2/opienet/opcap.h
index 9119972..0c9e7da 100644
--- a/libopie2/opienet/opcap.h
+++ b/libopie2/opienet/opcap.h
@@ -57,3 +57,6 @@ extern "C" // work around a bpf/pcap conflict in recent headers
#include <opie2/onetutils.h>
+
+/* Custom Network Includes */
#include "802_11_user.h"
+#include "dhcp.h"
@@ -479,2 +482,4 @@ class OUDPPacket : public QObject
int toPort() const;
+ int length() const;
+ int checksum() const;
@@ -485,2 +490,18 @@ class OUDPPacket : public QObject
/*======================================================================================
+ * ODHCPPacket
+ *======================================================================================*/
+
+class ODHCPPacket : public QObject
+{
+ Q_OBJECT
+
+ public:
+ ODHCPPacket( const unsigned char*, const struct dhcp_packet*, QObject* parent = 0 );
+ virtual ~ODHCPPacket();
+
+ private:
+ const struct dhcp_packet* _dhcphdr;
+};
+
+/*======================================================================================
* OTCPPacket
@@ -498,2 +519,6 @@ class OTCPPacket : public QObject
int toPort() const;
+ int seq() const;
+ int ack() const;
+ int window() const;
+ int checksum() const;
@@ -512,3 +537,4 @@ class OTCPPacket : public QObject
* This class is the base of a high-level interface to the well known packet capturing
- * library libpcap. ...
+ * library libpcap.
+ * @see http://tcpdump.org
*/