summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
blob: d80b24b4d253a6c8cefdc71c4792cbe9005c0501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* $Id$ */

#ifndef CARDMODE_HH
#define CARDMODE_HH

#include <string.h>
#include <stdlib.h>
#include <pcap.h>  
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/bpf.h>

#include "../../libwellenreiter/source/log.hh"

/* Defines, used for the card setup */
#define   DEFAULT_PATH       "/proc/driver/aironet/%s/Config"
#define   CARD_TYPE_CISCO	1
#define   CARD_TYPE_NG	        2
#define   CARD_TYPE_HOSTAP	3

/* only for now, until we have the daemon running */
/*the config file should provide these information */
#define   CARD_TYPE              CARD_TYPE_CISCO
#define   SBIN_PATH	         "/sbin/ifconfig %s promisc up"
#define   WLANCTL_PATH           "/sbin/wlanctl-ng"

/* Prototypes */

int card_into_monitormode (void *, char *, int);
int card_set_promisc_up (const char *);

#endif /* CARDMODE_HH */