summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/opcap.cpp7
-rw-r--r--libopie2/opienet/opcap.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/libopie2/opienet/opcap.cpp b/libopie2/opienet/opcap.cpp
index 313f5bb..9ed2b83 100644
--- a/libopie2/opienet/opcap.cpp
+++ b/libopie2/opienet/opcap.cpp
@@ -522,6 +522,13 @@ QHostAddress ODHCPPacket::relayAddress() const
return EXTRACT_32BITS( &_dhcphdr->giaddr );
}
+
+OMacAddress ODHCPPacket::clientMacAddress() const
+{
+ return OMacAddress( _dhcphdr->chaddr );
+}
+
+
/*======================================================================================
* OTCPPacket
*======================================================================================*/
diff --git a/libopie2/opienet/opcap.h b/libopie2/opienet/opcap.h
index f0d1d81..51f067a 100644
--- a/libopie2/opienet/opcap.h
+++ b/libopie2/opienet/opcap.h
@@ -509,6 +509,8 @@ class ODHCPPacket : public QObject
QHostAddress serverAddress() const;
QHostAddress relayAddress() const;
+ OMacAddress clientMacAddress() const;
+
bool isRequest() const;
bool isReply() const;
QString type() const;