summaryrefslogtreecommitdiff
path: root/libopie2/opienet/onetutils.h
Side-by-side diff
Diffstat (limited to 'libopie2/opienet/onetutils.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opienet/onetutils.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libopie2/opienet/onetutils.h b/libopie2/opienet/onetutils.h
index 0dabe8d..6640515 100644
--- a/libopie2/opienet/onetutils.h
+++ b/libopie2/opienet/onetutils.h
@@ -27,26 +27,30 @@
Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#ifndef ONETUTILS_H
#define ONETUTILS_H
#include <qdict.h>
#include <qmap.h>
#include <qstring.h>
#include <qhostaddress.h>
+#include <qobject.h>
+
+#include <sys/types.h>
struct ifreq;
+class OWirelessNetworkInterface;
/*======================================================================================
* OMacAddress
*======================================================================================*/
class OMacAddress
{
public:
OMacAddress( unsigned char* );
OMacAddress( const unsigned char* );
OMacAddress( struct ifreq& );
~OMacAddress();
@@ -71,24 +75,45 @@ bool operator==( const OMacAddress &m1, const OMacAddress &m2 );
* OHostAddress
*======================================================================================*/
class OHostAddress : public QHostAddress
{
public:
OHostAddress();
~OHostAddress();
};
/*======================================================================================
+ * OPrivateIOCTL
+ *======================================================================================*/
+
+class OPrivateIOCTL : public QObject
+{
+ public:
+ OPrivateIOCTL( QObject* parent, const char* name, int cmd, int getargs, int setargs );
+ ~OPrivateIOCTL();
+
+ int numberGetArgs() const;
+ int typeGetArgs() const;
+ int numberSetArgs() const;
+ int typeSetArgs() const;
+
+ private:
+ u_int32_t _ioctl;
+ u_int16_t _getargs;
+ u_int16_t _setargs;
+};
+
+ /*======================================================================================
* Miscellaneous
*======================================================================================*/
/* dump bytes */
void dumpBytes( const unsigned char* data, int num );
/* Network to host order macros */
#ifdef LBL_ALIGN
#define EXTRACT_16BITS(p) \
((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 0) << 8 | \