summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/daemon/source/cardmode.hh
Unidiff
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.hh4
1 files changed, 1 insertions, 3 deletions
diff --git a/noncore/net/wellenreiter/daemon/source/cardmode.hh b/noncore/net/wellenreiter/daemon/source/cardmode.hh
index 87284a1..ecc97b1 100644
--- a/noncore/net/wellenreiter/daemon/source/cardmode.hh
+++ b/noncore/net/wellenreiter/daemon/source/cardmode.hh
@@ -4,33 +4,31 @@
4#define CARDMODE_HH 4#define CARDMODE_HH
5 5
6#include <string.h> 6#include <string.h>
7#include <stdio.h> 7#include <stdio.h>
8#include <stdlib.h> 8#include <stdlib.h>
9#include <pcap.h> 9#include <pcap.h>
10#include <errno.h> 10#include <errno.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 <net/bpf.h> 14#include <net/bpf.h>
15 15
16#endif /* CARDMODE_HH */
17
18/* Defines, used for the card setup */ 16/* Defines, used for the card setup */
19#define DEFAULT_PATH "/proc/driver/aironet/%s/Config" 17#define DEFAULT_PATH "/proc/driver/aironet/%s/Config"
20 #define CARD_TYPE_CISCO1 18 #define CARD_TYPE_CISCO1
21 #define CARD_TYPE_NG2 19 #define CARD_TYPE_NG2
22 #define CARD_TYPE_HOSTAP3 20 #define CARD_TYPE_HOSTAP3
23 21
24/* only for now, until we have the daemon running */ 22/* only for now, until we have the daemon running */
25/*the config file should provide these information */ 23/*the config file should provide these information */
26 #define SNIFFER_DEVICE "wlan0" 24 #define SNIFFER_DEVICE "wlan0"
27#define CARD_TYPE CARD_TYPE_CISCO 25#define CARD_TYPE CARD_TYPE_CISCO
28 #define SBIN_PATH"/sbin/ifconfig %s promisc up" 26 #define SBIN_PATH"/sbin/ifconfig %s promisc up"
29#define WLANCTL_PATH "/sbin/wlanctl-ng" 27#define WLANCTL_PATH "/sbin/wlanctl-ng"
30 28
31/* Prototypes */ 29/* Prototypes */
32 30
33int card_into_monitormode (char * device, int cardtype); 31int card_into_monitormode (char * device, int cardtype);
34int card_set_promisc_up (char * device); 32int card_set_promisc_up (char * device);
35 33
36 34#endif /* CARDMODE_HH */