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 | |||
@@ -25,37 +25,26 @@ | |||
25 | -- :-=` this library; see the file COPYING.LIB. | 25 | -- :-=` this library; see the file COPYING.LIB. |
26 | If not, write to the Free Software Foundation, | 26 | If not, write to the Free Software Foundation, |
27 | Inc., 59 Temple Place - Suite 330, | 27 | Inc., 59 Temple Place - Suite 330, |
28 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
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 ); |
58 | const unsigned char __unknown[6] = { 0x44, 0x44, 0x44, 0x44, 0x44, 0x44 }; | 47 | const unsigned char __unknown[6] = { 0x44, 0x44, 0x44, 0x44, 0x44, 0x44 }; |
59 | const OMacAddress& OMacAddress::unknown = OMacAddress( __unknown ); | 48 | const OMacAddress& OMacAddress::unknown = OMacAddress( __unknown ); |
60 | 49 | ||
61 | //TODO: Incorporate Ethernet Manufacturer database here! (inline or so) | 50 | //TODO: Incorporate Ethernet Manufacturer database here! (inline or so) |