1
6
7
8
9
10
11
12
13
17
18
19
20
21
22
23
24
/* ... */
#pragma once
typedef esp_err_t (*wired_rx_cb_t)(void *buffer, uint16_t len, void *ctx);
typedef void (*wired_free_cb_t)(void *buffer, void *ctx);
typedef enum {
FROM_WIRED,
TO_WIRED
}{ ... } mac_spoof_direction_t;
void mac_spoof(mac_spoof_direction_t direction, uint8_t *buffer, uint16_t len, uint8_t own_mac[6]);
esp_err_t wired_bridge_init(wired_rx_cb_t rx_cb, wired_free_cb_t free_cb);
esp_err_t wired_send(void *buffer, uint16_t len, void *buff_free_arg);
esp_err_t wired_netif_init(void);