-
-/* 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 */
-};
+/* type definitions */
+typedef struct s_info {
+ int count; /* count packages */
+ unsigned char mode; /* monitoring/managed mode */
+ char device[MAX_DEV_CHARS]; /* sniffed devie */
+ int logfile_fd; /* file descriptof for logfile */
+ int pcap_fd; /* fd for reading pcap events */
+ int current_channel;
+ int channel_hop_fd;
+ char key[13]; /* wep key */
+ pcap_t *pcap_handle;
+} t_info;