summaryrefslogtreecommitdiff
Unidiff
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
@@ -521,8 +521,15 @@ QHostAddress ODHCPPacket::relayAddress() const
521{ 521{
522 return EXTRACT_32BITS( &_dhcphdr->giaddr ); 522 return EXTRACT_32BITS( &_dhcphdr->giaddr );
523} 523}
524 524
525
526OMacAddress ODHCPPacket::clientMacAddress() const
527{
528 return OMacAddress( _dhcphdr->chaddr );
529}
530
531
525/*====================================================================================== 532/*======================================================================================
526 * OTCPPacket 533 * OTCPPacket
527 *======================================================================================*/ 534 *======================================================================================*/
528 535
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
@@ -508,8 +508,10 @@ class ODHCPPacket : public QObject
508 QHostAddress yourAddress() const; 508 QHostAddress yourAddress() const;
509 QHostAddress serverAddress() const; 509 QHostAddress serverAddress() const;
510 QHostAddress relayAddress() const; 510 QHostAddress relayAddress() const;
511 511
512 OMacAddress clientMacAddress() const;
513
512 bool isRequest() const; 514 bool isRequest() const;
513 bool isReply() const; 515 bool isReply() const;
514 QString type() const; 516 QString type() const;
515 517