summaryrefslogtreecommitdiff
path: root/libopie2/opienet/onetutils.h
Unidiff
Diffstat (limited to 'libopie2/opienet/onetutils.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/onetutils.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libopie2/opienet/onetutils.h b/libopie2/opienet/onetutils.h
index 18731ba..541c5ab 100644
--- a/libopie2/opienet/onetutils.h
+++ b/libopie2/opienet/onetutils.h
@@ -75,27 +75,28 @@ class OMacAddress
75 75
76}; 76};
77 77
78bool operator==( const OMacAddress &m1, const OMacAddress &m2 ); 78bool operator==( const OMacAddress &m1, const OMacAddress &m2 );
79 79
80 80
81/*====================================================================================== 81/*======================================================================================
82 * OHostAddress 82 * OHostAddress
83 *======================================================================================*/ 83 *======================================================================================*/
84 84
85class OHostAddress : public QHostAddress 85class OHostAddress : public QHostAddress
86{ 86{
87 public: 87 /*public:
88 OHostAddress(); 88 OHostAddress();
89 ~OHostAddress(); 89 ~OHostAddress();
90 */
90}; 91};
91 92
92 93
93/*====================================================================================== 94/*======================================================================================
94 * OPrivateIOCTL 95 * OPrivateIOCTL
95 *======================================================================================*/ 96 *======================================================================================*/
96 97
97class OPrivateIOCTL : public QObject 98class OPrivateIOCTL : public QObject
98{ 99{
99 public: 100 public:
100 OPrivateIOCTL( QObject* parent, const char* name, int cmd, int getargs, int setargs ); 101 OPrivateIOCTL( QObject* parent, const char* name, int cmd, int getargs, int setargs );
101 ~OPrivateIOCTL(); 102 ~OPrivateIOCTL();
@@ -111,27 +112,27 @@ class OPrivateIOCTL : public QObject
111 112
112 private: 113 private:
113 u_int32_t _ioctl; 114 u_int32_t _ioctl;
114 u_int16_t _getargs; 115 u_int16_t _getargs;
115 u_int16_t _setargs; 116 u_int16_t _setargs;
116 117
117}; 118};
118 119
119 /*====================================================================================== 120 /*======================================================================================
120 * Miscellaneous 121 * Miscellaneous
121 *======================================================================================*/ 122 *======================================================================================*/
122 123
123/* dump bytes */
124
125void dumpBytes( const unsigned char* data, int num ); 124void dumpBytes( const unsigned char* data, int num );
125QString modeToString( int );
126int stringToMode( const QString& );
126 127
127/* Network to host order macros */ 128/* Network to host order macros */
128 129
129#ifdef LBL_ALIGN 130#ifdef LBL_ALIGN
130#define EXTRACT_16BITS(p) \ 131#define EXTRACT_16BITS(p) \
131 ((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 0) << 8 | \ 132 ((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 0) << 8 | \
132 (u_int16_t)*((const u_int8_t *)(p) + 1))) 133 (u_int16_t)*((const u_int8_t *)(p) + 1)))
133#define EXTRACT_32BITS(p) \ 134#define EXTRACT_32BITS(p) \
134 ((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 0) << 24 | \ 135 ((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 0) << 24 | \
135 (u_int32_t)*((const u_int8_t *)(p) + 1) << 16 | \ 136 (u_int32_t)*((const u_int8_t *)(p) + 1) << 16 | \
136 (u_int32_t)*((const u_int8_t *)(p) + 2) << 8 | \ 137 (u_int32_t)*((const u_int8_t *)(p) + 2) << 8 | \
137 (u_int32_t)*((const u_int8_t *)(p) + 3))) 138 (u_int32_t)*((const u_int8_t *)(p) + 3)))