summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/daemon/source/daemon.cc2
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh2
-rw-r--r--noncore/net/wellenreiter/opie-wellenreiter.control2
3 files changed, 3 insertions, 3 deletions
diff --git a/noncore/net/wellenreiter/daemon/source/daemon.cc b/noncore/net/wellenreiter/daemon/source/daemon.cc
index 95f2f83..cc72377 100644
--- a/noncore/net/wellenreiter/daemon/source/daemon.cc
+++ b/noncore/net/wellenreiter/daemon/source/daemon.cc
@@ -11,25 +11,25 @@
11int main(int argc, char **argv) 11int main(int argc, char **argv)
12{ 12{
13 int sock, maxfd, retval; 13 int sock, maxfd, retval;
14 char buffer[128]; 14 char buffer[128];
15 struct pcap_pkthdr header; 15 struct pcap_pkthdr header;
16 pcap_t *handletopcap; 16 pcap_t *handletopcap;
17 const unsigned char *packet; 17 const unsigned char *packet;
18 18
19 fd_set rset; 19 fd_set rset;
20 20
21 fprintf(stderr, "wellenreiterd %s\n\n", VERSION); 21 fprintf(stderr, "wellenreiterd %s\n\n", VERSION);
22 22
23 if(!card_into_monitormode(&handletopcap, SNIFFER_DEVICE, CARD_TYPE_NG)) 23 if(!card_into_monitormode(&handletopcap, SNIFFER_DEVICE, CARD_TYPE))
24 { 24 {
25 wl_logerr("Cannot set card into mon mode, aborting"); 25 wl_logerr("Cannot set card into mon mode, aborting");
26 exit(-1); 26 exit(-1);
27 } 27 }
28 wl_loginfo("Set card into monitor mode"); 28 wl_loginfo("Set card into monitor mode");
29 29
30 /////// following line will be moved to lib as soon as possible //////////// 30 /////// following line will be moved to lib as soon as possible ////////////
31 if((handletopcap = pcap_open_live(SNIFFER_DEVICE, BUFSIZ, 1, 0, NULL)) == NULL) 31 if((handletopcap = pcap_open_live(SNIFFER_DEVICE, BUFSIZ, 1, 0, NULL)) == NULL)
32 { 32 {
33 wl_logerr("pcap_open_live() failed: %s", strerror(errno)); 33 wl_logerr("pcap_open_live() failed: %s", strerror(errno));
34 exit(-1); 34 exit(-1);
35 } 35 }
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
index a3f8280..fad74cf 100644
--- a/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
+++ b/noncore/net/wellenreiter/libwellenreiter/source/cardmode.hh
@@ -17,21 +17,21 @@ extern "C"
17} 17}
18 18
19#include "../../libwellenreiter/source/log.hh" 19#include "../../libwellenreiter/source/log.hh"
20 20
21/* Defines, used for the card setup */ 21/* Defines, used for the card setup */
22#define DEFAULT_PATH "/proc/driver/aironet/%s/Config" 22#define DEFAULT_PATH "/proc/driver/aironet/%s/Config"
23 #define CARD_TYPE_CISCO1 23 #define CARD_TYPE_CISCO1
24 #define CARD_TYPE_NG 2 24 #define CARD_TYPE_NG 2
25 #define CARD_TYPE_HOSTAP3 25 #define CARD_TYPE_HOSTAP3
26 26
27/* only for now, until we have the daemon running */ 27/* only for now, until we have the daemon running */
28/*the config file should provide these information */ 28/*the config file should provide these information */
29#define CARD_TYPE CARD_TYPE_CISCO 29#define CARD_TYPE CARD_TYPE_HOSTAP
30 #define SBIN_PATH "/sbin/ifconfig %s promisc up" 30 #define SBIN_PATH "/sbin/ifconfig %s promisc up"
31#define WLANCTL_PATH "/sbin/wlanctl-ng" 31#define WLANCTL_PATH "/sbin/wlanctl-ng"
32 32
33/* Prototypes */ 33/* Prototypes */
34int card_into_monitormode (pcap_t **, char *, int); 34int card_into_monitormode (pcap_t **, char *, int);
35int card_set_promisc_up (const char *); 35int card_set_promisc_up (const char *);
36 36
37#endif /* CARDMODE_HH */ 37#endif /* CARDMODE_HH */
diff --git a/noncore/net/wellenreiter/opie-wellenreiter.control b/noncore/net/wellenreiter/opie-wellenreiter.control
index f34cc08..0ea27bf 100644
--- a/noncore/net/wellenreiter/opie-wellenreiter.control
+++ b/noncore/net/wellenreiter/opie-wellenreiter.control
@@ -1,9 +1,9 @@
1Files: bin/wellenreiter bin/wellenreiterd bin/orinoco_hopper pics/wellenreiter $QTDIR/lib/libwellenreiter.* 1Files: bin/wellenreiter bin/wellenreiterd bin/orinoco_hopper pics/wellenreiter apps/Applications/wellenreiter.desktop $QTDIR/lib/libwellenreiter.*
2Priority: optional 2Priority: optional
3Section: opie/applications 3Section: opie/applications
4Maintainer: Michael Lauer <mickeyl@handhelds.org> 4Maintainer: Michael Lauer <mickeyl@handhelds.org>
5Architecture: arm 5Architecture: arm
6Version: $QPE_VERSION-$SUB_VERSION 6Version: $QPE_VERSION-$SUB_VERSION
7Depends: opie-base ($QPE_VERSION), libpcap 7Depends: opie-base ($QPE_VERSION), libpcap
8Description: A WaveLAN Network Monitor 8Description: A WaveLAN Network Monitor
9 A WaveLAN Network Monitor/Sniffer for the Opie Environment. 9 A WaveLAN Network Monitor/Sniffer for the Opie Environment.