Reply UDP packets in the source interface

copercini
Posts: 26
Joined: Wed Dec 21, 2016 4:44 pm

Reply UDP packets in the source interface

Postby copercini » Wed Dec 27, 2017 1:17 pm

Hi!

I'm working with ethernet+Wifi and for example: Ethernet interface gets the IP 192.168.0.20 and WiFi gets 192.168.0.45 on the same network. That's fine, the only problem is when UDP packets are received from wifi (192.168.0.45) and replied via Ethernet (192.168.0.20).

In a nutshell: my PC broadcast a UDP packed and it's got 2 replies from Ethernet (192.168.0.20) and nothing from wifi (192.168.0.45). There is some configuration in lwip or ESP32 for reply these UDP packets to a source interface?

User avatar
martinayotte
Posts: 141
Joined: Fri Nov 13, 2015 4:27 pm

Re: Reply UDP packets in the source interface

Postby martinayotte » Wed Dec 27, 2017 3:19 pm

With any kind of hardware, even with PCs, it is not good to have 2 interfaces on the same subnet, because there are default gateways conflicts.

Who is online

Users browsing this forum: Bing [Bot], devlat and 124 guests