author | max <max> | 2003-01-23 02:21:57 (UTC) |
---|---|---|
committer | max <max> | 2003-01-23 02:21:57 (UTC) |
commit | 5383c984ad15bde0300a6ca4559b0df52fe695b0 (patch) (unidiff) | |
tree | 12ac9b23d45e5d8144a952343bbac3fb0cf58899 /noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh | |
parent | c464d34970bedca56a518310deef7ce08474033c (diff) | |
download | opie-5383c984ad15bde0300a6ca4559b0df52fe695b0.zip opie-5383c984ad15bde0300a6ca4559b0df52fe695b0.tar.gz opie-5383c984ad15bde0300a6ca4559b0df52fe695b0.tar.bz2 |
hostap monitor command
Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh index b85b7b7..9721b39 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh +++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh | |||
@@ -1,36 +1,37 @@ | |||
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/types.h> | 9 | #include <sys/types.h> |
10 | #include <sys/time.h> | 10 | #include <sys/time.h> |
11 | #include <sys/socket.h> | 11 | #include <sys/socket.h> |
12 | #include <netinet/in.h> | 12 | #include <netinet/in.h> |
13 | 13 | ||
14 | extern "C" | 14 | extern "C" |
15 | { | 15 | { |
16 | #include <net/bpf.h> | 16 | #include <net/bpf.h> |
17 | #include <pcap.h> | 17 | #include <pcap.h> |
18 | } | 18 | } |
19 | 19 | ||
20 | /* Defines, used for the card setup */ | 20 | /* Defines, used for the card setup */ |
21 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" | 21 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" |
22 | #define CARD_TYPE_CISCO1 | 22 | #define CARD_TYPE_CISCO1 |
23 | #define CARD_TYPE_NG 2 | 23 | #define CARD_TYPE_NG 2 |
24 | #define CARD_TYPE_HOSTAP3 | 24 | #define CARD_TYPE_HOSTAP3 |
25 | 25 | ||
26 | /* only for now, until we have the daemon running */ | 26 | /* only for now, until we have the daemon running */ |
27 | /*the config file should provide these information */ | 27 | /*the config file should provide these information */ |
28 | #define CARD_TYPE CARD_TYPE_HOSTAP | 28 | #define CARD_TYPE CARD_TYPE_HOSTAP |
29 | #define SBIN_PATH "/sbin/ifconfig %s promisc up" | 29 | #define SBIN_PATH "/sbin/ifconfig %s promisc up" |
30 | #define WLANCTL_PATH "/sbin/wlanctl-ng" | 30 | #define WLANCTL_PATH "/sbin/wlanctl-ng" |
31 | #define IWPRIV_PATH "/sbin/iwpriv" | ||
31 | 32 | ||
32 | /* Prototypes */ | 33 | /* Prototypes */ |
33 | int card_into_monitormode (pcap_t **, char *, int); | 34 | int card_into_monitormode (pcap_t **, char *, int); |
34 | int card_set_promisc_up (const char *); | 35 | int card_set_promisc_up (const char *); |
35 | 36 | ||
36 | #endif /* CARDMODE_HH */ | 37 | #endif /* CARDMODE_HH */ |