summaryrefslogtreecommitdiff
path: root/libopie2/opienet/opcap.h
Unidiff
Diffstat (limited to 'libopie2/opienet/opcap.h') (more/less context) (ignore 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
@@ -55,7 +55,10 @@ extern "C" // work around a bpf/pcap conflict in recent headers
55 55
56/* OPIE */ 56/* OPIE */
57#include <opie2/onetutils.h> 57#include <opie2/onetutils.h>
58
59/* Custom Network Includes */
58#include "802_11_user.h" 60#include "802_11_user.h"
61#include "dhcp.h"
59 62
60/* TYPEDEFS */ 63/* TYPEDEFS */
61typedef struct timeval timevalstruct; 64typedef struct timeval timevalstruct;
@@ -477,12 +480,30 @@ class OUDPPacket : public QObject
477 480
478 int fromPort() const; 481 int fromPort() const;
479 int toPort() const; 482 int toPort() const;
483 int length() const;
484 int checksum() const;
480 485
481 private: 486 private:
482 const struct udphdr* _udphdr; 487 const struct udphdr* _udphdr;
483}; 488};
484 489
485/*====================================================================================== 490/*======================================================================================
491 * ODHCPPacket
492 *======================================================================================*/
493
494class ODHCPPacket : public QObject
495{
496 Q_OBJECT
497
498 public:
499 ODHCPPacket( const unsigned char*, const struct dhcp_packet*, QObject* parent = 0 );
500 virtual ~ODHCPPacket();
501
502 private:
503 const struct dhcp_packet* _dhcphdr;
504};
505
506/*======================================================================================
486 * OTCPPacket 507 * OTCPPacket
487 *======================================================================================*/ 508 *======================================================================================*/
488 509
@@ -496,6 +517,10 @@ class OTCPPacket : public QObject
496 517
497 int fromPort() const; 518 int fromPort() const;
498 int toPort() const; 519 int toPort() const;
520 int seq() const;
521 int ack() const;
522 int window() const;
523 int checksum() const;
499 524
500 private: 525 private:
501 const struct tcphdr* _tcphdr; 526 const struct tcphdr* _tcphdr;
@@ -510,7 +535,8 @@ class OTCPPacket : public QObject
510 * @brief A class based wrapper for network packet capturing. 535 * @brief A class based wrapper for network packet capturing.
511 * 536 *
512 * This class is the base of a high-level interface to the well known packet capturing 537 * This class is the base of a high-level interface to the well known packet capturing
513 * library libpcap. ... 538 * library libpcap.
539 * @see http://tcpdump.org
514 */ 540 */
515class OPacketCapturer : public QObject 541class OPacketCapturer : public QObject
516{ 542{