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