Taking things nice & slow, I started with the following setup:
/** * IP_FORWARD==1: Enables the ability to forward IP packets across network * interfaces. If you are going to run lwIP on a device with only one network * interface, define this to 0. */ #ifndef IP_FORWARD // #define IP_FORWARD 0 #define IP_FORWARD 1 #endif
I rebuilt the firmware, flashed it to a ESP Module and:
FAILED. No changes to the module's routing behaviour.
If anyone is more familiar with the code, don't hesitate to leave a comment.
- Get packet forwarding to work
- Routes? What routes? (There is a hook for those in later versions of LWIP. Backporting possible?)
Another search of the source code shows that there is another place that sets IP_FORWARD: /app/include/lwipopts.h - I'll try that next.