-
Notifications
You must be signed in to change notification settings - Fork 0
/
ESP8266_Promiscuous.h
56 lines (52 loc) · 1.16 KB
/
ESP8266_Promiscuous.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
struct RxControl {
signed rssi: 8;
unsigned rate: 4;
unsigned is_group: 1;
unsigned: 1;
unsigned sig_mode: 2;
unsigned legacy_length: 12;
unsigned damatch0: 1;
unsigned damatch1: 1;
unsigned bssidmatch0: 1;
unsigned bssidmatch1: 1;
unsigned MCS: 7;
unsigned CWB: 1;
unsigned HT_length: 16;
unsigned Smoothing: 1;
unsigned Not_Sounding: 1;
unsigned: 1;
unsigned Aggregation: 1;
unsigned STBC: 2;
unsigned FEC_CODING: 1;
unsigned SGI: 1;
unsigned rxend_state: 8;
unsigned ampdu_cnt: 8;
unsigned channel: 4;
unsigned: 12;
};
struct LenSeq {
uint16_t length;
uint16_t seq;
uint8_t address3 [6];
};
struct sniffer_buf {
struct RxControl rx_ctrl;
uint8_t buf [36];
uint16_t cnt;
struct LenSeq lenseq [1];
};
struct sniffer_buf2 {
struct RxControl rx_ctrl;
uint8_t buf [112];
uint16_t cnt;
uint16_t len;
};
struct MAC_header {
uint16_t frameControl;
uint16_t duration;
uint8_t addr1 [6];
uint8_t addr2 [6];
uint8_t addr3 [6];
uint16_t sequenceControl;
uint8_t addr4 [6];
};