Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh index fad74cf..7c6a21d 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh +++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh | |||
@@ -1,37 +1,35 @@ | |||
1 | /* $Id$ */ | 1 | /* $Id$ */ |
2 | 2 | ||
3 | #ifndef CARDMODE_HH | 3 | #ifndef CARDMODE_HH |
4 | #define CARDMODE_HH | 4 | #define CARDMODE_HH |
5 | 5 | ||
6 | #include <string.h> | 6 | #include <string.h> |
7 | #include <stdlib.h> | 7 | #include <stdlib.h> |
8 | #include <errno.h> | 8 | #include <errno.h> |
9 | #include <sys/socket.h> | 9 | #include <sys/socket.h> |
10 | #include <netinet/in.h> | 10 | #include <netinet/in.h> |
11 | #include <arpa/inet.h> | 11 | #include <arpa/inet.h> |
12 | 12 | ||
13 | extern "C" | 13 | extern "C" |
14 | { | 14 | { |
15 | #include <net/bpf.h> | 15 | #include <net/bpf.h> |
16 | #include <pcap.h> | 16 | #include <pcap.h> |
17 | } | 17 | } |
18 | 18 | ||
19 | #include "../../libwellenreiter/source/log.hh" | ||
20 | |||
21 | /* Defines, used for the card setup */ | 19 | /* Defines, used for the card setup */ |
22 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" | 20 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" |
23 | #define CARD_TYPE_CISCO1 | 21 | #define CARD_TYPE_CISCO1 |
24 | #define CARD_TYPE_NG 2 | 22 | #define CARD_TYPE_NG 2 |
25 | #define CARD_TYPE_HOSTAP3 | 23 | #define CARD_TYPE_HOSTAP3 |
26 | 24 | ||
27 | /* only for now, until we have the daemon running */ | 25 | /* only for now, until we have the daemon running */ |
28 | /*the config file should provide these information */ | 26 | /*the config file should provide these information */ |
29 | #define CARD_TYPE CARD_TYPE_HOSTAP | 27 | #define CARD_TYPE CARD_TYPE_HOSTAP |
30 | #define SBIN_PATH "/sbin/ifconfig %s promisc up" | 28 | #define SBIN_PATH "/sbin/ifconfig %s promisc up" |
31 | #define WLANCTL_PATH "/sbin/wlanctl-ng" | 29 | #define WLANCTL_PATH "/sbin/wlanctl-ng" |
32 | 30 | ||
33 | /* Prototypes */ | 31 | /* Prototypes */ |
34 | int card_into_monitormode (pcap_t **, char *, int); | 32 | int card_into_monitormode (pcap_t **, char *, int); |
35 | int card_set_promisc_up (const char *); | 33 | int card_set_promisc_up (const char *); |
36 | 34 | ||
37 | #endif /* CARDMODE_HH */ | 35 | #endif /* CARDMODE_HH */ |