X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fhdw-sniff.git;a=blobdiff_plain;f=main.h;h=6d655fc82245a5ee2f8233c922b23e5e34768fc2;hp=e9fd87224fc95e75e1211c0e3c1db8ec1e6f8176;hb=80bdf766cc69d2e685a2633b2aaa028448fbb8b3;hpb=9dbed1c13fcd9df91f6bad2654f1634d5628f72d diff --git a/main.h b/main.h index e9fd872..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,10 +63,16 @@ #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;