summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
Unidiff
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.hh9
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
index 3a1991b..242d8c5 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
+++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
@@ -10,12 +10,18 @@
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 <arpa/inet.h>
14#include <sys/ioctl.h> 14#include <sys/ioctl.h>
15#include <linux/if.h> 15#include <linux/if.h>
16#include <linux/wireless.h>
17
18#ifndef SIOCIWFIRSTPRIV
19#define SIOCIWFIRSTPRIV SIOCDEVPRIVATE
20#endif
21
16 22
17extern "C" 23extern "C"
18{ 24{
19#include <net/bpf.h> 25#include <net/bpf.h>
20#include <pcap.h> 26#include <pcap.h>
21} 27}
@@ -28,15 +34,12 @@ extern "C"
28 #define CARD_TYPE_HOSTAP3 34 #define CARD_TYPE_HOSTAP3
29#define CARD_TYPE_ORINOCCO 4 35#define CARD_TYPE_ORINOCCO 4
30 36
31/* only for now, until we have the daemon running */ 37/* only for now, until we have the daemon running */
32/*the config file should provide these information */ 38/*the config file should provide these information */
33#define CARD_TYPE CARD_TYPE_HOSTAP 39#define CARD_TYPE CARD_TYPE_HOSTAP
34 #define SBIN_PATH "/sbin/ifconfig %s promisc up"
35#define WLANCTL_PATH "/sbin/wlanctl-ng"
36 #define IWPRIV_PATH "/sbin/iwpriv"
37 40
38/* Prototypes */ 41/* Prototypes */
39int card_check_rfmon_datalink (char *device); 42int card_check_rfmon_datalink (char *device);
40int card_into_monitormode (pcap_t **, char *, int); 43int card_into_monitormode (pcap_t **, char *, int);
41int card_set_promisc_up (const char *); 44int card_set_promisc_up (const char *);
42int card_set_channel (const char *device, int channel,int cardtype); 45int card_set_channel (const char *device, int channel,int cardtype);