X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fhdw-sniff.git;a=blobdiff_plain;f=main.h;h=754c5f83e54d6f72df8d73d2b08932a86616405b;hp=0a39b7be1c871bd321db2399730759ba6894ba4a;hb=c191ef245532c978ebdfbcb25056500fab9eb638;hpb=c9575c4e105d074120e573587cbf7e7de9a0b5ab diff --git a/main.h b/main.h index 0a39b7b..754c5f8 100644 --- a/main.h +++ b/main.h @@ -31,9 +31,10 @@ #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 @@ -57,17 +58,18 @@ typedef struct s_info { int count; /* count packages */ unsigned char mode; /* monitoring/managed mode */ char device[MAX_DEV_CHARS]; /* sniffed devie */ - int logfile_fd; /* file descriptof for logfile */ + int log_fd; /* file descriptor for logfile */ int pcap_fd; /* fd for reading pcap events */ + int dump_fd; /* fd for dumping received packages */ int current_channel; int channel_hop_fd; - char key[13]; /* wep key */ pcap_t *pcap_handle; - t_data data; + t_list sniffed_sta; int view_table; } t_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