Diffstat (limited to 'noncore/net/wellenreiter/daemon/source/sniffer.hh') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/daemon/source/sniffer.hh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/noncore/net/wellenreiter/daemon/source/sniffer.hh b/noncore/net/wellenreiter/daemon/source/sniffer.hh index 7f45be6..d262353 100644 --- a/noncore/net/wellenreiter/daemon/source/sniffer.hh +++ b/noncore/net/wellenreiter/daemon/source/sniffer.hh | |||
@@ -13,19 +13,9 @@ | |||
13 | #include <arpa/inet.h> | 13 | #include <arpa/inet.h> |
14 | #include <net/bpf.h> | 14 | #include <net/bpf.h> |
15 | 15 | ||
16 | #define DEFAULT_PATH "/proc/driver/aironet/%s/Config" | ||
17 | #define CARD_TYPE_CISCO1 | ||
18 | #define CARD_TYPE_NG2 | ||
19 | #define CARD_TYPE_HOSTAP3 | ||
20 | 16 | ||
21 | #define NONBROADCASTING "non-broadcasting" | 17 | #define NONBROADCASTING "non-broadcasting" |
22 | 18 | ||
23 | /* only for now, until we have the daemon running */ | ||
24 | /*the config file should provide these information */ | ||
25 | #define SNIFFER_DEVICE "wlan0" | ||
26 | #define CARD_TYPE CARD_TYPE_CISCO | ||
27 | #define SBIN_PATH"/sbin/ifconfig %s promisc up" | ||
28 | #define WLANCTL_PATH "/sbin/wlanctl-ng" | ||
29 | 19 | ||
30 | /* holds all the interresting data */ | 20 | /* holds all the interresting data */ |
31 | struct packetinfo | 21 | struct packetinfo |
@@ -48,10 +38,7 @@ struct packetinfo | |||
48 | 38 | ||
49 | 39 | ||
50 | /* Prototypes */ | 40 | /* Prototypes */ |
51 | |||
52 | int sniffer(void); | 41 | int sniffer(void); |
53 | int card_into_monitormode (char * device, int cardtype); | ||
54 | int card_set_promisc_up (char * device); | ||
55 | int start_sniffing (char * device); | 42 | int start_sniffing (char * device); |
56 | void process_packets(u_char *useless,const struct pcap_pkthdr* pkthdr,const u_char* packet); | 43 | void process_packets(u_char *useless,const struct pcap_pkthdr* pkthdr,const u_char* packet); |
57 | int decode_80211b_hdr(const u_char *p,struct packetinfo *ppinfo); | 44 | int decode_80211b_hdr(const u_char *p,struct packetinfo *ppinfo); |