author | mickeyl <mickeyl> | 2003-04-05 19:29:47 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-04-05 19:29:47 (UTC) |
commit | 30e5401a945ebdfd92eedb9f3def9a6acd0fc6ca (patch) (unidiff) | |
tree | eca3cb8d01045773db7de60d8194ea85313d3e0a /libopie2/opienet/onetwork.h | |
parent | 2bfd529736f1dcf008540be2199cd3887a53c75c (diff) | |
download | opie-30e5401a945ebdfd92eedb9f3def9a6acd0fc6ca.zip opie-30e5401a945ebdfd92eedb9f3def9a6acd0fc6ca.tar.gz opie-30e5401a945ebdfd92eedb9f3def9a6acd0fc6ca.tar.bz2 |
- setting the monitor mode on wireless cards via private ioctls is now much more reliable because we detect the appropriate ioctl number at runtime
- ONetworkInterface supports now the evil but handy feature to change MAC address on the fly (provided the driver supports this)
-rw-r--r-- | libopie2/opienet/onetwork.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h index 4cadbeb..e249aee 100644 --- a/libopie2/opienet/onetwork.h +++ b/libopie2/opienet/onetwork.h | |||
@@ -60,16 +60,12 @@ | |||
60 | // ML: I will drop Jean an mail on that subject | 60 | // ML: I will drop Jean an mail on that subject |
61 | 61 | ||
62 | #include <net/if.h> | 62 | #include <net/if.h> |
63 | #define _LINUX_IF_H | 63 | #define _LINUX_IF_H |
64 | #include <linux/wireless.h> | 64 | #include <linux/wireless.h> |
65 | 65 | ||
66 | #ifndef SIOCIWFIRSTPRIV | ||
67 | #define SIOCIWFIRSTPRIV SIOCDEVPRIVATE | ||
68 | #endif | ||
69 | |||
70 | class ONetworkInterface; | 66 | class ONetworkInterface; |
71 | class OWirelessNetworkInterface; | 67 | class OWirelessNetworkInterface; |
72 | class OChannelHopper; | 68 | class OChannelHopper; |
73 | class OMonitoringInterface; | 69 | class OMonitoringInterface; |
74 | 70 | ||
75 | /*====================================================================================== | 71 | /*====================================================================================== |
@@ -122,12 +118,13 @@ class ONetworkInterface : public QObject | |||
122 | bool promiscuousMode() const; | 118 | bool promiscuousMode() const; |
123 | bool setUp( bool ); | 119 | bool setUp( bool ); |
124 | bool isUp() const; | 120 | bool isUp() const; |
125 | bool isLoopback() const; | 121 | bool isLoopback() const; |
126 | bool isWireless() const; | 122 | bool isWireless() const; |
127 | QString ipV4Address() const; | 123 | QString ipV4Address() const; |
124 | void setMacAddress( const OMacAddress& ); | ||
128 | OMacAddress macAddress() const; | 125 | OMacAddress macAddress() const; |
129 | int dataLinkType() const; | 126 | int dataLinkType() const; |
130 | 127 | ||
131 | protected: | 128 | protected: |
132 | const int _sfd; | 129 | const int _sfd; |
133 | mutable ifreq _ifr; | 130 | mutable ifreq _ifr; |
@@ -201,12 +198,13 @@ class OWirelessNetworkInterface : public ONetworkInterface | |||
201 | virtual int channelHopping() const; | 198 | virtual int channelHopping() const; |
202 | 199 | ||
203 | virtual void setNickName( const QString& ) {}; | 200 | virtual void setNickName( const QString& ) {}; |
204 | virtual QString nickName() const; | 201 | virtual QString nickName() const; |
205 | 202 | ||
206 | virtual void setPrivate( const QString&, int, ... ); | 203 | virtual void setPrivate( const QString&, int, ... ); |
204 | virtual bool hasPrivate( const QString& ); | ||
207 | virtual void getPrivate( const QString& ); | 205 | virtual void getPrivate( const QString& ); |
208 | 206 | ||
209 | virtual bool isAssociated() const {}; | 207 | virtual bool isAssociated() const {}; |
210 | virtual QString associatedAP() const; | 208 | virtual QString associatedAP() const; |
211 | 209 | ||
212 | virtual void setSSID( const QString& ); | 210 | virtual void setSSID( const QString& ); |
@@ -246,13 +244,13 @@ class OMonitoringInterface | |||
246 | virtual bool enabled() const; | 244 | virtual bool enabled() const; |
247 | virtual void setChannel( int ); | 245 | virtual void setChannel( int ); |
248 | 246 | ||
249 | virtual QString name() const = 0; | 247 | virtual QString name() const = 0; |
250 | 248 | ||
251 | protected: | 249 | protected: |
252 | const OWirelessNetworkInterface* _if; | 250 | OWirelessNetworkInterface* _if; |
253 | 251 | ||
254 | }; | 252 | }; |
255 | 253 | ||
256 | 254 | ||
257 | /*====================================================================================== | 255 | /*====================================================================================== |
258 | * OCiscoMonitoring | 256 | * OCiscoMonitoring |