author | mickeyl <mickeyl> | 2003-11-08 20:39:38 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-11-08 20:39:38 (UTC) |
commit | eb26b0413c269b898a24deb30d5602ac0c142a56 (patch) (unidiff) | |
tree | 4e9b24ce6a9e8811eb9e62d8537b452921d4564d /libopie2/opienet/onetutils.cpp | |
parent | 33d86bb19d4e21b95504ba3b16789d08b4820313 (diff) | |
download | opie-eb26b0413c269b898a24deb30d5602ac0c142a56.zip opie-eb26b0413c269b898a24deb30d5602ac0c142a56.tar.gz opie-eb26b0413c269b898a24deb30d5602ac0c142a56.tar.bz2 |
refactor the debug mapper and make it more secure
Diffstat (limited to 'libopie2/opienet/onetutils.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opienet/onetutils.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/libopie2/opienet/onetutils.cpp b/libopie2/opienet/onetutils.cpp index ce147c5..e3eb327 100644 --- a/libopie2/opienet/onetutils.cpp +++ b/libopie2/opienet/onetutils.cpp | |||
@@ -29,29 +29,18 @@ | |||
29 | 29 | ||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #include <opie2/onetutils.h> | 32 | #include <opie2/onetutils.h> |
33 | #include <opie2/onetwork.h> | 33 | #include <opie2/onetwork.h> |
34 | #include <opie2/omanufacturerdb.h> | 34 | #include <opie2/omanufacturerdb.h> |
35 | 35 | ||
36 | #include <net/if.h> | 36 | #include <net/if.h> |
37 | #include <cassert> | 37 | #include <assert.h> |
38 | #include <cstdio> | 38 | #include <stdio.h> |
39 | using namespace std; | ||
40 | |||
41 | #define IW_PRIV_TYPE_MASK 0x7000 | ||
42 | #define IW_PRIV_TYPE_NONE 0x0000 | ||
43 | #define IW_PRIV_TYPE_BYTE 0x1000 | ||
44 | #define IW_PRIV_TYPE_CHAR 0x2000 | ||
45 | #define IW_PRIV_TYPE_INT 0x4000 | ||
46 | #define IW_PRIV_TYPE_FLOAT 0x5000 | ||
47 | #define IW_PRIV_TYPE_ADDR 0x6000 | ||
48 | #define IW_PRIV_SIZE_FIXED 0x0800 | ||
49 | #define IW_PRIV_SIZE_MASK 0x07FF | ||
50 | 39 | ||
51 | /*====================================================================================== | 40 | /*====================================================================================== |
52 | * OMacAddress | 41 | * OMacAddress |
53 | *======================================================================================*/ | 42 | *======================================================================================*/ |
54 | 43 | ||
55 | // static initializer for broadcast and unknown MAC Adresses | 44 | // static initializer for broadcast and unknown MAC Adresses |
56 | const unsigned char __broadcast[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; | 45 | const unsigned char __broadcast[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; |
57 | const OMacAddress& OMacAddress::broadcast = OMacAddress( __broadcast ); | 46 | const OMacAddress& OMacAddress::broadcast = OMacAddress( __broadcast ); |