-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathlrc.h
62 lines (43 loc) · 1.01 KB
/
lrc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef __LRC_H__
#define __LRC_H__
#include <libnet.h>
#include <pthread.h>
#define PLATFORM_LINUX 1
#include "osdep/osdep.h"
#include "ieee80211.h"
#define HOP_DEFAULT_TIMEOUT 5000
#define MTU 1400
// Can`t be > 4096
#define MAX_PACKET_LENGTH 4096
#define ALRM_TIME 1
#define LLC_SIZE 8
#define PW_MAX_SIZE 256
#define PW_MAX_COUNT 65535
#define MAX_CHANS_LEN 256
// context for holding program state
struct ctx {
char *if_inj_name;
char *if_mon_name;
u_char if_inj_mac[6];
u_char if_mon_mac[6];
u_int channels[MAX_CHANS_LEN];
u_int channel_fix;
char *pw_fn;
libnet_t *lnet;
libnet_ptag_t lnet_p_tcp;
libnet_ptag_t lnet_p_udp;
libnet_ptag_t lnet_p_ip;
u_int mtu;
pthread_mutex_t mutex;
struct matcher_entry *matchers_list;
u_int hop_time;
// OSDEP structs
struct wif *wi_inj;
struct wif *wi_mon;
struct ap_info *ap_list;
struct sta_info *sta_list;
struct threadqueue *brute_queue;
};
#define BRUTE_STA 1
#define BRUTE_EXIT 2
#endif