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, 2 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh index 7750fb6..babb109 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh +++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh | |||
@@ -1,24 +1,25 @@ | |||
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 | #include <arpa/inet.h> | ||
13 | #include <sys/ioctl.h> | 14 | #include <sys/ioctl.h> |
14 | #include <linux/if.h> | 15 | #include <linux/if.h> |
15 | 16 | ||
16 | 17 | ||
17 | extern "C" | 18 | extern "C" |
18 | { | 19 | { |
19 | #include <net/bpf.h> | 20 | #include <net/bpf.h> |
20 | #include <pcap.h> | 21 | #include <pcap.h> |
21 | } | 22 | } |
22 | 23 | ||
23 | /* Defines, used for the card setup */ | 24 | /* Defines, used for the card setup */ |
24 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" | 25 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" |
@@ -26,16 +27,17 @@ extern "C" | |||
26 | #define CARD_TYPE_CISCO1 | 27 | #define CARD_TYPE_CISCO1 |
27 | #define CARD_TYPE_NG 2 | 28 | #define CARD_TYPE_NG 2 |
28 | #define CARD_TYPE_HOSTAP3 | 29 | #define CARD_TYPE_HOSTAP3 |
29 | 30 | ||
30 | /* only for now, until we have the daemon running */ | 31 | /* only for now, until we have the daemon running */ |
31 | /*the config file should provide these information */ | 32 | /*the config file should provide these information */ |
32 | #define CARD_TYPE CARD_TYPE_HOSTAP | 33 | #define CARD_TYPE CARD_TYPE_HOSTAP |
33 | #define SBIN_PATH "/sbin/ifconfig %s promisc up" | 34 | #define SBIN_PATH "/sbin/ifconfig %s promisc up" |
34 | #define WLANCTL_PATH "/sbin/wlanctl-ng" | 35 | #define WLANCTL_PATH "/sbin/wlanctl-ng" |
35 | #define IWPRIV_PATH "/sbin/iwpriv" | 36 | #define IWPRIV_PATH "/sbin/iwpriv" |
36 | 37 | ||
37 | /* Prototypes */ | 38 | /* Prototypes */ |
39 | int card_check_rfmon_datalink (char *device); | ||
38 | int card_into_monitormode (pcap_t **, char *, int); | 40 | int card_into_monitormode (pcap_t **, char *, int); |
39 | int card_set_promisc_up (const char *); | 41 | int card_set_promisc_up (const char *); |
40 | 42 | ||
41 | #endif /* CARDMODE_HH */ | 43 | #endif /* CARDMODE_HH */ |