moved old stuff to old/, added new stuff
[my-code/hdw-sniff.git] / main.h
diff --git a/main.h b/main.h
new file mode 100644 (file)
index 0000000..4d9b7b6
--- /dev/null
+++ b/main.h
@@ -0,0 +1,37 @@
+/*
+ * main.h - main header file
+ *
+ * author: hackbard@hackdaworld.dyndns.org
+ *
+ */
+
+#include <stdio.h>
+
+
+#define SYSCALL_MAX 32
+#define MAX_DEV_CHARS 6
+#define PCAP_SELECT_SEC 0
+#define PCAP_SELECT_USEC 200000
+
+#define CAP_MODE_MASK 0x01
+#define CAP_QUIT_MASK 0x02
+
+#define MONITORING_MODE 0x01
+#define MANAGED_MODE 0x00
+#define QUIT_MODE 0x02
+
+#define IWPRIV_M_MODE 3
+
+
+/* typedefinitions */
+struct info_struct
+{
+ unsigned char caps; /* capabilities */
+ int logfile_fd; /* file descriptof for logfile */
+ char device[MAX_DEV_CHARS]; /* sniffed devie */
+ int channel_hop_fd; /* fd for channel hopping */
+};
+
+
+/* function prototypes */
+int usage(void);