I am looking at eth2wifi example that I found here
I have some questions about it
- when the first eth packed is received, they start wifi and set its mac address to the mac address of the sender. Why?
- when a station connects to espAP, they register a callback: this is done for every connection. How the callback is tied to the station? Can I start wifi and immediately register the callback?
- inside the wifi callback they send the packet to eth, but when a packet comes from eth, they send a message to a queue where a task is waiting for, and then this task trasmit the packet to wifi. Why the task does not serve both interfaces ?
- a packet from eth is sent to wifi without the last four bytes, but a packet from wifi is sent completely. What are the last bytes?