author | max <max> | 2002-11-23 20:12:57 (UTC) |
---|---|---|
committer | max <max> | 2002-11-23 20:12:57 (UTC) |
commit | 2f11392ab9292df21a6e1374800954a6b405ee9b (patch) (unidiff) | |
tree | 4a3b90822b3cfe18ee95165f45b9fc4d46ea4385 /noncore/net/wellenreiter/daemon/source/cardmode.hh | |
parent | 19a08a4585abf1d6f66101d41374dd5441c5754e (diff) | |
download | opie-2f11392ab9292df21a6e1374800954a6b405ee9b.zip opie-2f11392ab9292df21a6e1374800954a6b405ee9b.tar.gz opie-2f11392ab9292df21a6e1374800954a6b405ee9b.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'noncore/net/wellenreiter/daemon/source/cardmode.hh') (more/less context) (ignore 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 | |||