IP forwarding

MikeWazowski
Posts: 10
Joined: Mon Apr 08, 2019 11:55 am

IP forwarding

Postby MikeWazowski » Mon May 13, 2019 9:26 am

Hi,

I am trying to setup IP forwarding in a setup with 3 devices (E1 -> E2 -> E3).

I want to send HTTP request from device E1 to device E3 by requesting directly with E3's IP address.

I have tried setting "#define IP_FORWARD 1" inside \esp-idf\components\lwip\lwip\src\include\lwip\opt.h, but it did not work in either direction (E1->E3 and E3->E1).

Thanks in advance for suggestions.

MikeWazowski
Posts: 10
Joined: Mon Apr 08, 2019 11:55 am

Re: IP forwarding

Postby MikeWazowski » Wed May 15, 2019 6:55 am

So by debugging, I can see that E3 is receiving information about retransmission inside "ip4_route_src_hook()" in ip4.c once IP_FORWARD is set to 1, but HTTP requests still fail.

Still looking for help.

On picture E1 - > E2 -> E3 in order.
Attachments
rdrct.PNG
rdrct.PNG (54.87 KiB) Viewed 3569 times

Who is online

Users browsing this forum: No registered users and 127 guests