X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fhdw-sniff.git;a=blobdiff_plain;f=main.h;fp=main.h;h=4d9b7b644f0726fa0646a757aeaa6e2398ef5560;hp=0000000000000000000000000000000000000000;hb=1bc659fa450df2108ab59b085e75564b7ac19995;hpb=f495a11c9e880f1f55aa8e6c44c065228e55e5c5 diff --git a/main.h b/main.h new file mode 100644 index 0000000..4d9b7b6 --- /dev/null +++ b/main.h @@ -0,0 +1,37 @@ +/* + * main.h - main header file + * + * author: hackbard@hackdaworld.dyndns.org + * + */ + +#include + + +#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);