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
small fixes in documentation + initial checkin of wep - crack tool
[my-code/hdw-sniff.git]
/
main.h
diff --git
a/main.h
b/main.h
index
9f4a350
..
0c49128
100644
(file)
--- a/
main.h
+++ b/
main.h
@@
-39,9
+39,6
@@
#define MAX_DEV_CHARS 6
#define MAX_SYSCALL_CHARS 128
#define MAX_DEV_CHARS 6
#define MAX_SYSCALL_CHARS 128
-#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
@@
-53,10
+50,14
@@
#define GUI_OFFSET_CTRL 57
#define GUI_OFFSET_DATA 64
#define GUI_OFFSET_ACTIVE 71
#define GUI_OFFSET_CTRL 57
#define GUI_OFFSET_DATA 64
#define GUI_OFFSET_ACTIVE 71
+#define GUI_OFFSET_SIGNAL 77
+
+#define HDW_SNIFF_MAX_WIDTH (GUI_OFFSET_SIGNAL+5)
+#define HDW_SNIFF_MAX_HEIGHT 8
/* modes */
/* modes */
-#define MODE_
MONITOR
(1<<0)
-#define MODE_
WLANNG
(1<<1)
+#define MODE_
IEEE80211
(1<<0)
+#define MODE_
PRISM
(1<<1)
#define MODE_QUIT (1<<2)
#define MODE_HEXOUT (1<<3)
#define MODE_ASCIIOUT (1<<4)
#define MODE_QUIT (1<<2)
#define MODE_HEXOUT (1<<3)
#define MODE_ASCIIOUT (1<<4)
@@
-78,11
+79,11
@@
typedef struct s_info {
int count_m;
int count_c;
int count_d;
int count_m;
int count_c;
int count_d;
- unsigned char mode; /*
monitoring/managed
mode */
+ unsigned char mode; /*
ieee802.11/prism
mode */
char device[MAX_DEV_CHARS]; /* sniffed devie */
int log_fd; /* file descriptor for logfile */
char device[MAX_DEV_CHARS]; /* sniffed devie */
int log_fd; /* file descriptor for logfile */
- int pcap_fd; /* fd for reading pcap events */
- int dump_fd; /* fd for dumping received packages */
+ char dump_file[128];
+ pcap_dumper_t *dump_handle;
int current_channel;
int channel_hop_fd;
pcap_t *pcap_handle;
int current_channel;
int channel_hop_fd;
pcap_t *pcap_handle;