At 15:43 05.03.2013 +0100, you wrote: >On 2013-03-05 15:07, Fabian Cenedese wrote: >>That's what I already tried. However if I netif_set_up the second >>interface then the communication over the first interface doesn't >>work anymore. I found out that the interfaces must have IP >>addresses differing inside the network mask. That may be >>obvious to you but I thought that's what the default is for. If >>no interfaces match or more than one then use the default >>instead of just the first found. Because I'd like to have both >>interfaces in the same subnet even with differing IP addresses. >>If there's no rule/standard on what to do in this case then I'd >>change core/ipv4/ip.c like this (could use some more error >>handling): > >That is not the only thing to change, you might want to take a look at the >changes we made for multiple interfaces in the same network at >https://github.com/EngineeringSpirit/FreeLwIP-Nios-II/tree/master/lwip/FreeRTOS > >I have changed the sources in core/ip4.c/h and core/udp.c as far as I can >remember. And to catch UDP broadcasts via both interfaces, we create two >sockets both listening specifically on the IP address of the interface. (So >not INADDR_ANY but the IP from the interface) > >Unfortunately you would probably need to make your own diff, I moved to files >around a bit so I could include them in the IDE where it's build for...
Thanks for the link, I'll have a look at it. There are several changes, I don't know if they're all related to 2 interfaces. On the other hand I'd like to stay close to the original sources so an update is easier. I'll play a bit with it. Thanks bye Fabi _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
