summaryrefslogtreecommitdiff
authormax <max>2003-02-01 09:05:37 (UTC)
committer max <max>2003-02-01 09:05:37 (UTC)
commit26ca12f21a55c7029e6a18d956fd49238d139c19 (patch) (unidiff)
tree70d1ccde5c8f3ebb6c6f27557e6ceb84b49c1950
parent953cb6d9cb9da2829db8364bcfb4ff8af0b0ae26 (diff)
downloadopie-26ca12f21a55c7029e6a18d956fd49238d139c19.zip
opie-26ca12f21a55c7029e6a18d956fd49238d139c19.tar.gz
opie-26ca12f21a55c7029e6a18d956fd49238d139c19.tar.bz2
cisco status
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
index 7678202..7750fb6 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
+++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
@@ -1,40 +1,41 @@
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 <sys/ioctl.h> 13#include <sys/ioctl.h>
14#include <linux/if.h> 14#include <linux/if.h>
15 15
16 16
17extern "C" 17extern "C"
18{ 18{
19#include <net/bpf.h> 19#include <net/bpf.h>
20#include <pcap.h> 20#include <pcap.h>
21} 21}
22 22
23/* Defines, used for the card setup */ 23/* Defines, used for the card setup */
24#define DEFAULT_PATH "/proc/driver/aironet/%s/Config" 24#define DEFAULT_PATH "/proc/driver/aironet/%s/Config"
25 #define CISCO_STATUS "/proc/driver/aironet/%s/Status"
25 #define CARD_TYPE_CISCO1 26 #define CARD_TYPE_CISCO1
26 #define CARD_TYPE_NG 2 27 #define CARD_TYPE_NG 2
27 #define CARD_TYPE_HOSTAP3 28 #define CARD_TYPE_HOSTAP3
28 29
29/* only for now, until we have the daemon running */ 30/* only for now, until we have the daemon running */
30/*the config file should provide these information */ 31/*the config file should provide these information */
31#define CARD_TYPE CARD_TYPE_HOSTAP 32#define CARD_TYPE CARD_TYPE_HOSTAP
32 #define SBIN_PATH "/sbin/ifconfig %s promisc up" 33 #define SBIN_PATH "/sbin/ifconfig %s promisc up"
33#define WLANCTL_PATH "/sbin/wlanctl-ng" 34#define WLANCTL_PATH "/sbin/wlanctl-ng"
34 #define IWPRIV_PATH "/sbin/iwpriv" 35 #define IWPRIV_PATH "/sbin/iwpriv"
35 36
36/* Prototypes */ 37/* Prototypes */
37int card_into_monitormode (pcap_t **, char *, int); 38int card_into_monitormode (pcap_t **, char *, int);
38int card_set_promisc_up (const char *); 39int card_set_promisc_up (const char *);
39 40
40#endif /* CARDMODE_HH */ 41#endif /* CARDMODE_HH */