projects
/
my-code
/
hdw-sniff.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
info view mode introduced (still buggy)
[my-code/hdw-sniff.git]
/
main.h
diff --git
a/main.h
b/main.h
index
9c2387a
..
6d655fc
100644
(file)
--- a/
main.h
+++ b/
main.h
@@
-31,15
+31,29
@@
#include "event.h"
#include "display.h"
#include "input.h"
#include "event.h"
#include "display.h"
#include "input.h"
+#include "list.h"
#define SYSCALL_MAX 32
#define SYSCALL_MAX 32
-#define CHANNEL_MAX 12
+#define MESSAGE_MAX 64
+#define CHANNEL_MAX 13
#define MAX_DEV_CHARS 6
#define MAX_SYSCALL_CHARS 64
#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 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)
/* modes */
#define MODE_MONITOR (1<<0)
#define MODE_WLANNG (1<<1)
@@
-49,12
+63,21
@@
#define MAX_BYTE_WEP 13 /* maximal 104 bit key */
#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;
/* 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 */
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 */
unsigned char mode; /* monitoring/managed mode */
char device[MAX_DEV_CHARS]; /* sniffed devie */
int log_fd; /* file descriptor for logfile */
@@
-69,5
+92,6
@@
typedef struct s_info {
/* function prototypes */
void parse_package(unsigned char *ptr,const struct pcap_pkthdr *pcap_header,const unsigned char *package);
/* 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
#endif