From 1af4ae3d621d63c82f7d78efda05218a3457981f Mon Sep 17 00:00:00 2001 From: mickeyl Date: Tue, 08 Apr 2003 14:15:35 +0000 Subject: - add skeleton for the last missing parts in the 802.11 decoding framework - fix huge memory leak in packet capturer - add more fine granular 802.11 subtype handling --- (limited to 'libopie2/opienet/opcap.h') diff --git a/libopie2/opienet/opcap.h b/libopie2/opienet/opcap.h index 04d22ff..ddef278 100644 --- a/libopie2/opienet/opcap.h +++ b/libopie2/opienet/opcap.h @@ -71,13 +71,11 @@ class OPacket : public QObject Q_OBJECT public: - OPacket( packetheaderstruct, const unsigned char*, QObject* parent ); + OPacket( int datalink, packetheaderstruct, const unsigned char*, QObject* parent ); virtual ~OPacket(); timevalstruct timeval() const; - OPacketCapturer* packetCapturer() const; - int caplen() const; int len() const; QString dump( int = 32 ) const; @@ -151,6 +149,8 @@ class OWaveLanManagementPacket : public QObject OWaveLanManagementPacket( const unsigned char*, const struct ieee_802_11_mgmt_header*, OWaveLanPacket* parent = 0 ); virtual ~OWaveLanManagementPacket(); + QString managementType() const; + int beaconInterval() const; int capabilities() const; // generic @@ -315,6 +315,22 @@ class OWaveLanDataPacket : public QObject }; /*====================================================================================== + * OWaveLanControlPacket - type: control (T_CTRL) + *======================================================================================*/ + +class OWaveLanControlPacket : public QObject +{ + Q_OBJECT + + public: + OWaveLanControlPacket( const unsigned char*, const struct ieee_802_11_control_header*, OWaveLanPacket* parent = 0 ); + virtual ~OWaveLanControlPacket(); + + private: + const struct ieee_802_11_control_header* _header; +}; + +/*====================================================================================== * OLLCPacket - IEEE 802.2 Link Level Control *======================================================================================*/ -- cgit v0.9.0.2