more beacon work
[my-code/hdw-sniff.git] / main.h
diff --git a/main.h b/main.h
index 9c2387a..e9fd872 100644 (file)
--- a/main.h
+++ b/main.h
 #include "event.h"
 #include "display.h"
 #include "input.h"
+#include "list.h"
 
 #define SYSCALL_MAX 32
-#define CHANNEL_MAX 12
+#define CHANNEL_MAX 13
 #define MAX_DEV_CHARS 6
 #define MAX_SYSCALL_CHARS 64
 
@@ -55,6 +56,9 @@ typedef struct s_info {
   t_display display;
   t_input input;
   int count; /* count packages */
+  int count_m;
+  int count_c;
+  int count_d;
   unsigned char mode; /* monitoring/managed mode */
   char device[MAX_DEV_CHARS]; /* sniffed devie */
   int log_fd; /* file descriptor for logfile */
@@ -69,5 +73,6 @@ typedef struct s_info {
 
 /* function prototypes */
 void parse_package(unsigned char *ptr,const struct pcap_pkthdr *pcap_header,const unsigned char *package);
+int display_console(t_info *info,char *string);
 
 #endif