summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/networksettings2/system.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/system.cpp b/noncore/settings/networksettings2/networksettings2/system.cpp
index 271e73d..298bdc9 100644
--- a/noncore/settings/networksettings2/networksettings2/system.cpp
+++ b/noncore/settings/networksettings2/networksettings2/system.cpp
@@ -12,32 +12,36 @@
12#include <fcntl.h> 12#include <fcntl.h>
13#include <errno.h> 13#include <errno.h>
14#include <unistd.h> 14#include <unistd.h>
15 15
16#include <qdir.h> 16#include <qdir.h>
17#include <qregexp.h> 17#include <qregexp.h>
18#include <qstringlist.h> 18#include <qstringlist.h>
19#include <qfile.h> 19#include <qfile.h>
20#include <qtextstream.h> 20#include <qtextstream.h>
21#include <qapplication.h> 21#include <qapplication.h>
22 22
23#include "resources.h" 23#include "resources.h"
24#include "system.h" 24#include "system.h"
25 25
26#define PROCNETDEV "/proc/net/dev" 26#define PROCNETDEV "/proc/net/dev"
27 27
28#ifndef ARPHRD_IEEE80211
29#define ARPHRD_IEEE80211 801
30#endif
31
28static char Dig2Hex[] = { 32static char Dig2Hex[] = {
29 '0', '1', '2', '3', 33 '0', '1', '2', '3',
30 '4', '5', '6', '7', 34 '4', '5', '6', '7',
31 '8', '9', 'A', 'B', 35 '8', '9', 'A', 'B',
32 'C', 'D', 'E', 'F' 36 'C', 'D', 'E', 'F'
33}; 37};
34 38
35// get HIGH nibble of byte 39// get HIGH nibble of byte
36#define HN(x) Dig2Hex[(((x)&0xf0)>>4)] 40#define HN(x) Dig2Hex[(((x)&0xf0)>>4)]
37// get LOW nibble of byte 41// get LOW nibble of byte
38#define LN(x) Dig2Hex[((x)&0x0f)] 42#define LN(x) Dig2Hex[((x)&0x0f)]
39 43
40System::System( void ) : QObject(), ProbedInterfaces() { 44System::System( void ) : QObject(), ProbedInterfaces() {
41 probeInterfaces(); 45 probeInterfaces();
42} 46}
43 47