X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fhdw-sniff.git;a=blobdiff_plain;f=main.h;h=6d655fc82245a5ee2f8233c922b23e5e34768fc2;hp=754c5f83e54d6f72df8d73d2b08932a86616405b;hb=80bdf766cc69d2e685a2633b2aaa028448fbb8b3;hpb=c191ef245532c978ebdfbcb25056500fab9eb638 diff --git a/main.h b/main.h index 754c5f8..6d655fc 100644 --- a/main.h +++ b/main.h @@ -34,13 +34,26 @@ #include "list.h" #define SYSCALL_MAX 32 +#define MESSAGE_MAX 64 #define CHANNEL_MAX 13 #define MAX_DEV_CHARS 6 #define MAX_SYSCALL_CHARS 64 +#define HDW_SNIFF_MAX_WIDTH 80 +#define HDW_SNIFF_MAX_HEIGHT 8 + #define HOP_SEC 0 #define HOP_USEC 200000 +#define GUI_OFFSET_STA 1 +#define GUI_OFFSET_SSID 19 +#define GUI_OFFSET_AP 39 +#define GUI_OFFSET_WEP 44 +#define GUI_OFFSET_MGMT 50 +#define GUI_OFFSET_CTRL 57 +#define GUI_OFFSET_DATA 64 +#define GUI_OFFSET_ACTIVE 71 + /* modes */ #define MODE_MONITOR (1<<0) #define MODE_WLANNG (1<<1) @@ -50,12 +63,21 @@ #define MAX_BYTE_WEP 13 /* maximal 104 bit key */ +#define VIEW_ALL 0x00 +#define VIEW_SINGLE 0x01 + /* type definitions */ typedef struct s_info { t_event event; t_display display; + char *clean_line; + int c_line,c_page; + unsigned char view; 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 */