2018-07-17 15:15:58 +02:00
|
|
|
#ifndef _MACSNIFF_H
|
|
|
|
#define _MACSNIFF_H
|
2018-06-09 22:28:20 +02:00
|
|
|
|
2018-04-02 01:30:24 +02:00
|
|
|
// ESP32 Functions
|
|
|
|
#include <esp_wifi.h>
|
|
|
|
|
2018-07-15 23:40:42 +02:00
|
|
|
// Hash function for scrambling MAC addresses
|
2018-07-15 14:28:05 +02:00
|
|
|
#include "hash.h"
|
2018-07-31 00:00:24 +02:00
|
|
|
#include "senddata.h"
|
2018-12-22 14:37:47 +01:00
|
|
|
#include "cyclic.h"
|
2018-07-31 00:00:24 +02:00
|
|
|
|
2018-04-02 01:30:24 +02:00
|
|
|
#define MAC_SNIFF_WIFI 0
|
2018-06-12 19:55:31 +02:00
|
|
|
#define MAC_SNIFF_BLE 1
|
2018-04-02 01:30:24 +02:00
|
|
|
|
2019-09-02 15:11:52 +02:00
|
|
|
void macsniff_setup(void);
|
2018-09-23 22:12:10 +02:00
|
|
|
uint16_t get_salt(void);
|
2018-07-31 00:00:24 +02:00
|
|
|
uint64_t macConvert(uint8_t *paddr);
|
2018-07-31 10:05:32 +02:00
|
|
|
bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type);
|
2018-08-02 12:48:27 +02:00
|
|
|
void printKey(const char *name, const uint8_t *key, uint8_t len, bool lsb);
|
2018-06-09 22:28:20 +02:00
|
|
|
|
|
|
|
#endif
|