summaryrefslogtreecommitdiff
path: root/libopie2/opienet/odebugmapper.cpp
Unidiff
Diffstat (limited to 'libopie2/opienet/odebugmapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/odebugmapper.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/libopie2/opienet/odebugmapper.cpp b/libopie2/opienet/odebugmapper.cpp
index 7e4ab2b..f679afb 100644
--- a/libopie2/opienet/odebugmapper.cpp
+++ b/libopie2/opienet/odebugmapper.cpp
@@ -1,57 +1,63 @@
1 1
2/* 2/*
3 * debug value mapper - generated by regen.py - (C) Michael 'Mickey' Lauer <mickey@vanille.de> 3 * debug value mapper - generated by regen.py - (C) Michael 'Mickey' Lauer <mickey@vanille.de>
4 */ 4 */
5 5
6#include <opie2/odebug.h> 6#include <opie2/odebug.h>
7 7
8#include "odebugmapper.h" 8#include "odebugmapper.h"
9 9
10using namespace Opie::Core;
11
12namespace Opie {
13namespace Net {
14namespace Private {
15
10DebugMapper::DebugMapper() 16DebugMapper::DebugMapper()
11{ 17{
12 odebug << "DebugMapper::DebugMapper()" << oendl; 18 odebug << "DebugMapper::DebugMapper()" << oendl;
13 19
14 20
15 _map.insert( 0x8902, new QString("SIOCSPGRP") ); 21 _map.insert( 0x8902, new QString("SIOCSPGRP") );
16 _map.insert( 0x8904, new QString("SIOCGPGRP") ); 22 _map.insert( 0x8904, new QString("SIOCGPGRP") );
17 _map.insert( 0x8905, new QString("SIOCATMARK") ); 23 _map.insert( 0x8905, new QString("SIOCATMARK") );
18 _map.insert( 0x8906, new QString("SIOCGSTAMP") ); 24 _map.insert( 0x8906, new QString("SIOCGSTAMP") );
19 _map.insert( 0x890B, new QString("SIOCADDRT") ); 25 _map.insert( 0x890B, new QString("SIOCADDRT") );
20 _map.insert( 0x890C, new QString("SIOCDELRT") ); 26 _map.insert( 0x890C, new QString("SIOCDELRT") );
21 _map.insert( 0x890D, new QString("SIOCRTMSG") ); 27 _map.insert( 0x890D, new QString("SIOCRTMSG") );
22 _map.insert( 0x8910, new QString("SIOCGIFNAME") ); 28 _map.insert( 0x8910, new QString("SIOCGIFNAME") );
23 _map.insert( 0x8911, new QString("SIOCSIFLINK") ); 29 _map.insert( 0x8911, new QString("SIOCSIFLINK") );
24 _map.insert( 0x8912, new QString("SIOCGIFCONF") ); 30 _map.insert( 0x8912, new QString("SIOCGIFCONF") );
25 _map.insert( 0x8913, new QString("SIOCGIFFLAGS") ); 31 _map.insert( 0x8913, new QString("SIOCGIFFLAGS") );
26 _map.insert( 0x8914, new QString("SIOCSIFFLAGS") ); 32 _map.insert( 0x8914, new QString("SIOCSIFFLAGS") );
27 _map.insert( 0x8915, new QString("SIOCGIFADDR") ); 33 _map.insert( 0x8915, new QString("SIOCGIFADDR") );
28 _map.insert( 0x8916, new QString("SIOCSIFADDR") ); 34 _map.insert( 0x8916, new QString("SIOCSIFADDR") );
29 _map.insert( 0x8917, new QString("SIOCGIFDSTADDR") ); 35 _map.insert( 0x8917, new QString("SIOCGIFDSTADDR") );
30 _map.insert( 0x8918, new QString("SIOCSIFDSTADDR") ); 36 _map.insert( 0x8918, new QString("SIOCSIFDSTADDR") );
31 _map.insert( 0x8919, new QString("SIOCGIFBRDADDR") ); 37 _map.insert( 0x8919, new QString("SIOCGIFBRDADDR") );
32 _map.insert( 0x891a, new QString("SIOCSIFBRDADDR") ); 38 _map.insert( 0x891a, new QString("SIOCSIFBRDADDR") );
33 _map.insert( 0x891b, new QString("SIOCGIFNETMASK") ); 39 _map.insert( 0x891b, new QString("SIOCGIFNETMASK") );
34 _map.insert( 0x891c, new QString("SIOCSIFNETMASK") ); 40 _map.insert( 0x891c, new QString("SIOCSIFNETMASK") );
35 _map.insert( 0x891d, new QString("SIOCGIFMETRIC") ); 41 _map.insert( 0x891d, new QString("SIOCGIFMETRIC") );
36 _map.insert( 0x891e, new QString("SIOCSIFMETRIC") ); 42 _map.insert( 0x891e, new QString("SIOCSIFMETRIC") );
37 _map.insert( 0x891f, new QString("SIOCGIFMEM") ); 43 _map.insert( 0x891f, new QString("SIOCGIFMEM") );
38 _map.insert( 0x8920, new QString("SIOCSIFMEM") ); 44 _map.insert( 0x8920, new QString("SIOCSIFMEM") );
39 _map.insert( 0x8921, new QString("SIOCGIFMTU") ); 45 _map.insert( 0x8921, new QString("SIOCGIFMTU") );
40 _map.insert( 0x8922, new QString("SIOCSIFMTU") ); 46 _map.insert( 0x8922, new QString("SIOCSIFMTU") );
41 _map.insert( 0x8923, new QString("SIOCSIFNAME") ); 47 _map.insert( 0x8923, new QString("SIOCSIFNAME") );
42 _map.insert( 0x8924, new QString("SIOCSIFHWADDR") ); 48 _map.insert( 0x8924, new QString("SIOCSIFHWADDR") );
43 _map.insert( 0x8925, new QString("SIOCGIFENCAP") ); 49 _map.insert( 0x8925, new QString("SIOCGIFENCAP") );
44 _map.insert( 0x8926, new QString("SIOCSIFENCAP") ); 50 _map.insert( 0x8926, new QString("SIOCSIFENCAP") );
45 _map.insert( 0x8927, new QString("SIOCGIFHWADDR") ); 51 _map.insert( 0x8927, new QString("SIOCGIFHWADDR") );
46 _map.insert( 0x8929, new QString("SIOCGIFSLAVE") ); 52 _map.insert( 0x8929, new QString("SIOCGIFSLAVE") );
47 _map.insert( 0x8930, new QString("SIOCSIFSLAVE") ); 53 _map.insert( 0x8930, new QString("SIOCSIFSLAVE") );
48 _map.insert( 0x8931, new QString("SIOCADDMULTI") ); 54 _map.insert( 0x8931, new QString("SIOCADDMULTI") );
49 _map.insert( 0x8932, new QString("SIOCDELMULTI") ); 55 _map.insert( 0x8932, new QString("SIOCDELMULTI") );
50 _map.insert( 0x8933, new QString("SIOCGIFINDEX") ); 56 _map.insert( 0x8933, new QString("SIOCGIFINDEX") );
51 _map.insert( 0x8934, new QString("SIOCSIFPFLAGS") ); 57 _map.insert( 0x8934, new QString("SIOCSIFPFLAGS") );
52 _map.insert( 0x8935, new QString("SIOCGIFPFLAGS") ); 58 _map.insert( 0x8935, new QString("SIOCGIFPFLAGS") );
53 _map.insert( 0x8936, new QString("SIOCDIFADDR") ); 59 _map.insert( 0x8936, new QString("SIOCDIFADDR") );
54 _map.insert( 0x8937, new QString("SIOCSIFHWBROADCAST") ); 60 _map.insert( 0x8937, new QString("SIOCSIFHWBROADCAST") );
55 _map.insert( 0x8938, new QString("SIOCGIFCOUNT") ); 61 _map.insert( 0x8938, new QString("SIOCGIFCOUNT") );
56 _map.insert( 0x8940, new QString("SIOCGIFBR") ); 62 _map.insert( 0x8940, new QString("SIOCGIFBR") );
57 _map.insert( 0x8941, new QString("SIOCSIFBR") ); 63 _map.insert( 0x8941, new QString("SIOCSIFBR") );
@@ -167,49 +173,51 @@ DebugMapper::DebugMapper()
167 _map.insert( 0x8948, new QString("SIOCGMIIREG") ); 173 _map.insert( 0x8948, new QString("SIOCGMIIREG") );
168 _map.insert( 0x8949, new QString("SIOCSMIIREG") ); 174 _map.insert( 0x8949, new QString("SIOCSMIIREG") );
169 _map.insert( 0x894A, new QString("SIOCWANDEV") ); 175 _map.insert( 0x894A, new QString("SIOCWANDEV") );
170 _map.insert( 0x8953, new QString("SIOCDARP") ); 176 _map.insert( 0x8953, new QString("SIOCDARP") );
171 _map.insert( 0x8954, new QString("SIOCGARP") ); 177 _map.insert( 0x8954, new QString("SIOCGARP") );
172 _map.insert( 0x8955, new QString("SIOCSARP") ); 178 _map.insert( 0x8955, new QString("SIOCSARP") );
173 _map.insert( 0x8960, new QString("SIOCDRARP") ); 179 _map.insert( 0x8960, new QString("SIOCDRARP") );
174 _map.insert( 0x8961, new QString("SIOCGRARP") ); 180 _map.insert( 0x8961, new QString("SIOCGRARP") );
175 _map.insert( 0x8962, new QString("SIOCSRARP") ); 181 _map.insert( 0x8962, new QString("SIOCSRARP") );
176 _map.insert( 0x8970, new QString("SIOCGIFMAP") ); 182 _map.insert( 0x8970, new QString("SIOCGIFMAP") );
177 _map.insert( 0x8971, new QString("SIOCSIFMAP") ); 183 _map.insert( 0x8971, new QString("SIOCSIFMAP") );
178 _map.insert( 0x8980, new QString("SIOCADDDLCI") ); 184 _map.insert( 0x8980, new QString("SIOCADDDLCI") );
179 _map.insert( 0x8981, new QString("SIOCDELDLCI") ); 185 _map.insert( 0x8981, new QString("SIOCDELDLCI") );
180 _map.insert( 0x8982, new QString("SIOCGIFVLAN") ); 186 _map.insert( 0x8982, new QString("SIOCGIFVLAN") );
181 _map.insert( 0x8983, new QString("SIOCSIFVLAN") ); 187 _map.insert( 0x8983, new QString("SIOCSIFVLAN") );
182 _map.insert( 0x8990, new QString("SIOCBONDENSLAVE") ); 188 _map.insert( 0x8990, new QString("SIOCBONDENSLAVE") );
183 _map.insert( 0x8991, new QString("SIOCBONDRELEASE") ); 189 _map.insert( 0x8991, new QString("SIOCBONDRELEASE") );
184 _map.insert( 0x8992, new QString("SIOCBONDSETHWADDR") ); 190 _map.insert( 0x8992, new QString("SIOCBONDSETHWADDR") );
185 _map.insert( 0x8993, new QString("SIOCBONDSLAVEINFOQUERY") ); 191 _map.insert( 0x8993, new QString("SIOCBONDSLAVEINFOQUERY") );
186 _map.insert( 0x8994, new QString("SIOCBONDINFOQUERY") ); 192 _map.insert( 0x8994, new QString("SIOCBONDINFOQUERY") );
187 _map.insert( 0x8995, new QString("SIOCBONDCHANGEACTIVE") ); 193 _map.insert( 0x8995, new QString("SIOCBONDCHANGEACTIVE") );
188 _map.insert( 0x89F0, new QString("SIOCDEVPRIVATE") ); 194 _map.insert( 0x89F0, new QString("SIOCDEVPRIVATE") );
189 _map.insert( 0x89E0, new QString("SIOCPROTOPRIVATE") ); 195 _map.insert( 0x89E0, new QString("SIOCPROTOPRIVATE") );
190 196
191}; 197};
192 198
193 199
194DebugMapper::~DebugMapper() 200DebugMapper::~DebugMapper()
195{ 201{
196 odebug << "DebugMapper::~DebugMapper()" << oendl; 202 odebug << "DebugMapper::~DebugMapper()" << oendl;
197} 203}
198 204
199 205
200const QString& DebugMapper::map( int value ) const 206const QString& DebugMapper::map( int value ) const
201{ 207{
202 QString* result = _map[ value ]; 208 QString* result = _map[ value ];
203 209
204 if ( !result ) 210 if ( !result )
205 { 211 {
206 owarn << "DebugMapper::map() - value " << value << " is not found." << oendl; 212 owarn << "DebugMapper::map() - value " << value << " is not found." << oendl;
207 return QString::null; 213 return QString::null;
208 } 214 }
209 else 215 else
210 { 216 {
211 return *result; 217 return *result;
212 } 218 }
213} 219}
214 220
215 221}
222}
223}