changed flite calls
authorhackbard <hackbard>
Fri, 10 Jun 2005 16:20:21 +0000 (16:20 +0000)
committerhackbard <hackbard>
Fri, 10 Jun 2005 16:20:21 +0000 (16:20 +0000)
main.h
parse.c

diff --git a/main.h b/main.h
index 6d655fc..9f4a350 100644 (file)
--- a/main.h
+++ b/main.h
@@ -37,7 +37,7 @@
 #define MESSAGE_MAX 64
 #define CHANNEL_MAX 13
 #define MAX_DEV_CHARS 6
 #define MESSAGE_MAX 64
 #define CHANNEL_MAX 13
 #define MAX_DEV_CHARS 6
-#define MAX_SYSCALL_CHARS 64
+#define MAX_SYSCALL_CHARS 128
 
 #define HDW_SNIFF_MAX_WIDTH 80
 #define HDW_SNIFF_MAX_HEIGHT 8
 
 #define HDW_SNIFF_MAX_WIDTH 80
 #define HDW_SNIFF_MAX_HEIGHT 8
diff --git a/parse.c b/parse.c
index 7eac803..151c9f5 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -100,7 +100,12 @@ void parse_package(unsigned char *ptr,const struct pcap_pkthdr *pcap_header,cons
       string[22+3*ADDR_LEN+1]=0;
       display_console(info,string);
       if(new) {
       string[22+3*ADDR_LEN+1]=0;
       display_console(info,string);
       if(new) {
-        snprintf(sc,MAX_SYSCALL_CHARS,"flite 'new ssid: %s'",sta->ssid);
+        snprintf(sc,MAX_SYSCALL_CHARS,
+                 "flite 'access point found: %s'",
+                 sta->ssid);
+        system(sc);
+        if(sta->wep&WEP) strncpy(sc,"flite ' crypted'",MAX_SYSCALL_CHARS);
+        else strncpy(sc,"flite 'not crypted'",MAX_SYSCALL_CHARS);
         system(sc);
       } 
     }
         system(sc);
       } 
     }