author | mickeyl <mickeyl> | 2003-10-04 01:34:13 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-10-04 01:34:13 (UTC) |
commit | a4793f5226e9eb5c8a718cca9335c23530e08b08 (patch) (side-by-side diff) | |
tree | 9e18d900f9c0a96170c8221ba4e60e7b7937cf39 /libopie2/opienet/opcap.h | |
parent | e2716e3862915582d0ce48aaacc967f5b0cf6550 (diff) | |
download | opie-a4793f5226e9eb5c8a718cca9335c23530e08b08.zip opie-a4793f5226e9eb5c8a718cca9335c23530e08b08.tar.gz opie-a4793f5226e9eb5c8a718cca9335c23530e08b08.tar.bz2 |
Although not yet complete, the DHCP decoding is now usable
-rw-r--r-- | libopie2/opienet/opcap.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libopie2/opienet/opcap.h b/libopie2/opienet/opcap.h index 0c9e7da..a031dd1 100644 --- a/libopie2/opienet/opcap.h +++ b/libopie2/opienet/opcap.h @@ -496,14 +496,24 @@ class ODHCPPacket : public QObject Q_OBJECT public: ODHCPPacket( const unsigned char*, const struct dhcp_packet*, QObject* parent = 0 ); virtual ~ODHCPPacket(); + QHostAddress clientAddress() const; + QHostAddress yourAddress() const; + QHostAddress serverAddress() const; + QHostAddress relayAddress() const; + + bool isRequest() const; + bool isReply() const; + QString type() const; + private: const struct dhcp_packet* _dhcphdr; + unsigned char _type; }; /*====================================================================================== * OTCPPacket *======================================================================================*/ |