Diffstat (limited to 'libopie2/opienet/odebugmapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opienet/odebugmapper.cpp | 213 |
1 files changed, 213 insertions, 0 deletions
diff --git a/libopie2/opienet/odebugmapper.cpp b/libopie2/opienet/odebugmapper.cpp new file mode 100644 index 0000000..d62b3ba --- a/dev/null +++ b/libopie2/opienet/odebugmapper.cpp | |||
@@ -0,0 +1,213 @@ | |||
1 | |||
2 | /* | ||
3 | * debug value mapper - generated by regen.py - (C) Michael 'Mickey' Lauer <mickey@vanille.de> | ||
4 | */ | ||
5 | |||
6 | #include "odebugmapper.h" | ||
7 | |||
8 | DebugMapper::DebugMapper() | ||
9 | { | ||
10 | qDebug( "DebugMapper::DebugMapper()" ); | ||
11 | |||
12 | |||
13 | _map.insert( 0x8902, new QString("SIOCSPGRP") ); | ||
14 | _map.insert( 0x8904, new QString("SIOCGPGRP") ); | ||
15 | _map.insert( 0x8905, new QString("SIOCATMARK") ); | ||
16 | _map.insert( 0x8906, new QString("SIOCGSTAMP") ); | ||
17 | _map.insert( 0x890B, new QString("SIOCADDRT") ); | ||
18 | _map.insert( 0x890C, new QString("SIOCDELRT") ); | ||
19 | _map.insert( 0x890D, new QString("SIOCRTMSG") ); | ||
20 | _map.insert( 0x8910, new QString("SIOCGIFNAME") ); | ||
21 | _map.insert( 0x8911, new QString("SIOCSIFLINK") ); | ||
22 | _map.insert( 0x8912, new QString("SIOCGIFCONF") ); | ||
23 | _map.insert( 0x8913, new QString("SIOCGIFFLAGS") ); | ||
24 | _map.insert( 0x8914, new QString("SIOCSIFFLAGS") ); | ||
25 | _map.insert( 0x8915, new QString("SIOCGIFADDR") ); | ||
26 | _map.insert( 0x8916, new QString("SIOCSIFADDR") ); | ||
27 | _map.insert( 0x8917, new QString("SIOCGIFDSTADDR") ); | ||
28 | _map.insert( 0x8918, new QString("SIOCSIFDSTADDR") ); | ||
29 | _map.insert( 0x8919, new QString("SIOCGIFBRDADDR") ); | ||
30 | _map.insert( 0x891a, new QString("SIOCSIFBRDADDR") ); | ||
31 | _map.insert( 0x891b, new QString("SIOCGIFNETMASK") ); | ||
32 | _map.insert( 0x891c, new QString("SIOCSIFNETMASK") ); | ||
33 | _map.insert( 0x891d, new QString("SIOCGIFMETRIC") ); | ||
34 | _map.insert( 0x891e, new QString("SIOCSIFMETRIC") ); | ||
35 | _map.insert( 0x891f, new QString("SIOCGIFMEM") ); | ||
36 | _map.insert( 0x8920, new QString("SIOCSIFMEM") ); | ||
37 | _map.insert( 0x8921, new QString("SIOCGIFMTU") ); | ||
38 | _map.insert( 0x8922, new QString("SIOCSIFMTU") ); | ||
39 | _map.insert( 0x8923, new QString("SIOCSIFNAME") ); | ||
40 | _map.insert( 0x8924, new QString("SIOCSIFHWADDR") ); | ||
41 | _map.insert( 0x8925, new QString("SIOCGIFENCAP") ); | ||
42 | _map.insert( 0x8926, new QString("SIOCSIFENCAP") ); | ||
43 | _map.insert( 0x8927, new QString("SIOCGIFHWADDR") ); | ||
44 | _map.insert( 0x8929, new QString("SIOCGIFSLAVE") ); | ||
45 | _map.insert( 0x8930, new QString("SIOCSIFSLAVE") ); | ||
46 | _map.insert( 0x8931, new QString("SIOCADDMULTI") ); | ||
47 | _map.insert( 0x8932, new QString("SIOCDELMULTI") ); | ||
48 | _map.insert( 0x8933, new QString("SIOCGIFINDEX") ); | ||
49 | _map.insert( 0x8934, new QString("SIOCSIFPFLAGS") ); | ||
50 | _map.insert( 0x8935, new QString("SIOCGIFPFLAGS") ); | ||
51 | _map.insert( 0x8936, new QString("SIOCDIFADDR") ); | ||
52 | _map.insert( 0x8937, new QString("SIOCSIFHWBROADCAST") ); | ||
53 | _map.insert( 0x8938, new QString("SIOCGIFCOUNT") ); | ||
54 | _map.insert( 0x8940, new QString("SIOCGIFBR") ); | ||
55 | _map.insert( 0x8941, new QString("SIOCSIFBR") ); | ||
56 | _map.insert( 0x8942, new QString("SIOCGIFTXQLEN") ); | ||
57 | _map.insert( 0x8943, new QString("SIOCSIFTXQLEN") ); | ||
58 | _map.insert( 0x8953, new QString("SIOCDARP") ); | ||
59 | _map.insert( 0x8954, new QString("SIOCGARP") ); | ||
60 | _map.insert( 0x8955, new QString("SIOCSARP") ); | ||
61 | _map.insert( 0x8960, new QString("SIOCDRARP") ); | ||
62 | _map.insert( 0x8961, new QString("SIOCGRARP") ); | ||
63 | _map.insert( 0x8962, new QString("SIOCSRARP") ); | ||
64 | _map.insert( 0x8970, new QString("SIOCGIFMAP") ); | ||
65 | _map.insert( 0x8971, new QString("SIOCSIFMAP") ); | ||
66 | _map.insert( 0x8980, new QString("SIOCADDDLCI") ); | ||
67 | _map.insert( 0x8981, new QString("SIOCDELDLCI") ); | ||
68 | _map.insert( 0x89F0, new QString("SIOCDEVPRIVATE") ); | ||
69 | _map.insert( 0x89E0, new QString("SIOCPROTOPRIVATE") ); | ||
70 | _map.insert( 0x1fff, new QString("SIOCPARM_MASK") ); | ||
71 | _map.insert( 0x00000000, new QString("SIOC_VOID") ); | ||
72 | _map.insert( 0x20000000, new QString("SIOC_OUT") ); | ||
73 | _map.insert( 0x40000000, new QString("SIOC_IN") ); | ||
74 | _map.insert( 0x8B00, new QString("SIOCSIWCOMMIT") ); | ||
75 | _map.insert( 0x8B01, new QString("SIOCGIWNAME") ); | ||
76 | _map.insert( 0x8B02, new QString("SIOCSIWNWID") ); | ||
77 | _map.insert( 0x8B03, new QString("SIOCGIWNWID") ); | ||
78 | _map.insert( 0x8B04, new QString("SIOCSIWFREQ") ); | ||
79 | _map.insert( 0x8B05, new QString("SIOCGIWFREQ") ); | ||
80 | _map.insert( 0x8B06, new QString("SIOCSIWMODE") ); | ||
81 | _map.insert( 0x8B07, new QString("SIOCGIWMODE") ); | ||
82 | _map.insert( 0x8B08, new QString("SIOCSIWSENS") ); | ||
83 | _map.insert( 0x8B09, new QString("SIOCGIWSENS") ); | ||
84 | _map.insert( 0x8B0A, new QString("SIOCSIWRANGE") ); | ||
85 | _map.insert( 0x8B0B, new QString("SIOCGIWRANGE") ); | ||
86 | _map.insert( 0x8B0C, new QString("SIOCSIWPRIV") ); | ||
87 | _map.insert( 0x8B0D, new QString("SIOCGIWPRIV") ); | ||
88 | _map.insert( 0x8B0E, new QString("SIOCSIWSTATS") ); | ||
89 | _map.insert( 0x8B0F, new QString("SIOCGIWSTATS") ); | ||
90 | _map.insert( 0x8B10, new QString("SIOCSIWSPY") ); | ||
91 | _map.insert( 0x8B11, new QString("SIOCGIWSPY") ); | ||
92 | _map.insert( 0x8B14, new QString("SIOCSIWAP") ); | ||
93 | _map.insert( 0x8B15, new QString("SIOCGIWAP") ); | ||
94 | _map.insert( 0x8B17, new QString("SIOCGIWAPLIST") ); | ||
95 | _map.insert( 0x8B18, new QString("SIOCSIWSCAN") ); | ||
96 | _map.insert( 0x8B19, new QString("SIOCGIWSCAN") ); | ||
97 | _map.insert( 0x8B1A, new QString("SIOCSIWESSID") ); | ||
98 | _map.insert( 0x8B1B, new QString("SIOCGIWESSID") ); | ||
99 | _map.insert( 0x8B1C, new QString("SIOCSIWNICKN") ); | ||
100 | _map.insert( 0x8B1D, new QString("SIOCGIWNICKN") ); | ||
101 | _map.insert( 0x8B20, new QString("SIOCSIWRATE") ); | ||
102 | _map.insert( 0x8B21, new QString("SIOCGIWRATE") ); | ||
103 | _map.insert( 0x8B22, new QString("SIOCSIWRTS") ); | ||
104 | _map.insert( 0x8B23, new QString("SIOCGIWRTS") ); | ||
105 | _map.insert( 0x8B24, new QString("SIOCSIWFRAG") ); | ||
106 | _map.insert( 0x8B25, new QString("SIOCGIWFRAG") ); | ||
107 | _map.insert( 0x8B26, new QString("SIOCSIWTXPOW") ); | ||
108 | _map.insert( 0x8B27, new QString("SIOCGIWTXPOW") ); | ||
109 | _map.insert( 0x8B28, new QString("SIOCSIWRETRY") ); | ||
110 | _map.insert( 0x8B29, new QString("SIOCGIWRETRY") ); | ||
111 | _map.insert( 0x8B2A, new QString("SIOCSIWENCODE") ); | ||
112 | _map.insert( 0x8B2B, new QString("SIOCGIWENCODE") ); | ||
113 | _map.insert( 0x8B2C, new QString("SIOCSIWPOWER") ); | ||
114 | _map.insert( 0x8B2D, new QString("SIOCGIWPOWER") ); | ||
115 | _map.insert( 0x8BE0, new QString("SIOCIWFIRSTPRIV") ); | ||
116 | _map.insert( 0x8BFF, new QString("SIOCIWLASTPRIV") ); | ||
117 | _map.insert( 0x8B00, new QString("SIOCIWFIRST") ); | ||
118 | _map.insert( 0x5000, new QString("SIOCGBPQETHPARAM") ); | ||
119 | _map.insert( 0x5001, new QString("SIOCSBPQETHPARAM") ); | ||
120 | _map.insert( 0x890B, new QString("SIOCADDRT") ); | ||
121 | _map.insert( 0x890C, new QString("SIOCDELRT") ); | ||
122 | _map.insert( 0x890D, new QString("SIOCRTMSG") ); | ||
123 | _map.insert( 0x8910, new QString("SIOCGIFNAME") ); | ||
124 | _map.insert( 0x8911, new QString("SIOCSIFLINK") ); | ||
125 | _map.insert( 0x8912, new QString("SIOCGIFCONF") ); | ||
126 | _map.insert( 0x8913, new QString("SIOCGIFFLAGS") ); | ||
127 | _map.insert( 0x8914, new QString("SIOCSIFFLAGS") ); | ||
128 | _map.insert( 0x8915, new QString("SIOCGIFADDR") ); | ||
129 | _map.insert( 0x8916, new QString("SIOCSIFADDR") ); | ||
130 | _map.insert( 0x8917, new QString("SIOCGIFDSTADDR") ); | ||
131 | _map.insert( 0x8918, new QString("SIOCSIFDSTADDR") ); | ||
132 | _map.insert( 0x8919, new QString("SIOCGIFBRDADDR") ); | ||
133 | _map.insert( 0x891a, new QString("SIOCSIFBRDADDR") ); | ||
134 | _map.insert( 0x891b, new QString("SIOCGIFNETMASK") ); | ||
135 | _map.insert( 0x891c, new QString("SIOCSIFNETMASK") ); | ||
136 | _map.insert( 0x891d, new QString("SIOCGIFMETRIC") ); | ||
137 | _map.insert( 0x891e, new QString("SIOCSIFMETRIC") ); | ||
138 | _map.insert( 0x891f, new QString("SIOCGIFMEM") ); | ||
139 | _map.insert( 0x8920, new QString("SIOCSIFMEM") ); | ||
140 | _map.insert( 0x8921, new QString("SIOCGIFMTU") ); | ||
141 | _map.insert( 0x8922, new QString("SIOCSIFMTU") ); | ||
142 | _map.insert( 0x8923, new QString("SIOCSIFNAME") ); | ||
143 | _map.insert( 0x8924, new QString("SIOCSIFHWADDR") ); | ||
144 | _map.insert( 0x8925, new QString("SIOCGIFENCAP") ); | ||
145 | _map.insert( 0x8926, new QString("SIOCSIFENCAP") ); | ||
146 | _map.insert( 0x8927, new QString("SIOCGIFHWADDR") ); | ||
147 | _map.insert( 0x8929, new QString("SIOCGIFSLAVE") ); | ||
148 | _map.insert( 0x8930, new QString("SIOCSIFSLAVE") ); | ||
149 | _map.insert( 0x8931, new QString("SIOCADDMULTI") ); | ||
150 | _map.insert( 0x8932, new QString("SIOCDELMULTI") ); | ||
151 | _map.insert( 0x8933, new QString("SIOCGIFINDEX") ); | ||
152 | _map.insert( 0x8934, new QString("SIOCSIFPFLAGS") ); | ||
153 | _map.insert( 0x8935, new QString("SIOCGIFPFLAGS") ); | ||
154 | _map.insert( 0x8936, new QString("SIOCDIFADDR") ); | ||
155 | _map.insert( 0x8937, new QString("SIOCSIFHWBROADCAST") ); | ||
156 | _map.insert( 0x8938, new QString("SIOCGIFCOUNT") ); | ||
157 | _map.insert( 0x8940, new QString("SIOCGIFBR") ); | ||
158 | _map.insert( 0x8941, new QString("SIOCSIFBR") ); | ||
159 | _map.insert( 0x8942, new QString("SIOCGIFTXQLEN") ); | ||
160 | _map.insert( 0x8943, new QString("SIOCSIFTXQLEN") ); | ||
161 | _map.insert( 0x8944, new QString("SIOCGIFDIVERT") ); | ||
162 | _map.insert( 0x8945, new QString("SIOCSIFDIVERT") ); | ||
163 | _map.insert( 0x8946, new QString("SIOCETHTOOL") ); | ||
164 | _map.insert( 0x8947, new QString("SIOCGMIIPHY") ); | ||
165 | _map.insert( 0x8948, new QString("SIOCGMIIREG") ); | ||
166 | _map.insert( 0x8949, new QString("SIOCSMIIREG") ); | ||
167 | _map.insert( 0x894A, new QString("SIOCWANDEV") ); | ||
168 | _map.insert( 0x8953, new QString("SIOCDARP") ); | ||
169 | _map.insert( 0x8954, new QString("SIOCGARP") ); | ||
170 | _map.insert( 0x8955, new QString("SIOCSARP") ); | ||
171 | _map.insert( 0x8960, new QString("SIOCDRARP") ); | ||
172 | _map.insert( 0x8961, new QString("SIOCGRARP") ); | ||
173 | _map.insert( 0x8962, new QString("SIOCSRARP") ); | ||
174 | _map.insert( 0x8970, new QString("SIOCGIFMAP") ); | ||
175 | _map.insert( 0x8971, new QString("SIOCSIFMAP") ); | ||
176 | _map.insert( 0x8980, new QString("SIOCADDDLCI") ); | ||
177 | _map.insert( 0x8981, new QString("SIOCDELDLCI") ); | ||
178 | _map.insert( 0x8982, new QString("SIOCGIFVLAN") ); | ||
179 | _map.insert( 0x8983, new QString("SIOCSIFVLAN") ); | ||
180 | _map.insert( 0x8990, new QString("SIOCBONDENSLAVE") ); | ||
181 | _map.insert( 0x8991, new QString("SIOCBONDRELEASE") ); | ||
182 | _map.insert( 0x8992, new QString("SIOCBONDSETHWADDR") ); | ||
183 | _map.insert( 0x8993, new QString("SIOCBONDSLAVEINFOQUERY") ); | ||
184 | _map.insert( 0x8994, new QString("SIOCBONDINFOQUERY") ); | ||
185 | _map.insert( 0x8995, new QString("SIOCBONDCHANGEACTIVE") ); | ||
186 | _map.insert( 0x89F0, new QString("SIOCDEVPRIVATE") ); | ||
187 | _map.insert( 0x89E0, new QString("SIOCPROTOPRIVATE") ); | ||
188 | |||
189 | }; | ||
190 | |||
191 | |||
192 | DebugMapper::~DebugMapper() | ||
193 | { | ||
194 | qDebug( "DebugMapper::~DebugMapper()" ); | ||
195 | } | ||
196 | |||
197 | |||
198 | const QString& DebugMapper::map( int value ) const | ||
199 | { | ||
200 | QString* result = _map[ value ]; | ||
201 | |||
202 | if ( !result ) | ||
203 | { | ||
204 | qDebug( "DebugMapper::map() - value not found." ); | ||
205 | return QString::null; | ||
206 | } | ||
207 | else | ||
208 | { | ||
209 | return *result; | ||
210 | } | ||
211 | } | ||
212 | |||
213 | |||