Re: [lwip-users] Routing and link up/down vs. netif up/down

2014-06-09 Thread Sergio R. Caprile
Well yes and no. I don't decide how the customer will use the two interfaces. But if he does attach them to the same subnet and wants to have cable redundancy, it should behave in a way that works at least similar to what a full fledged IP stack like the linux one would. Well, in that

Re: [lwip-users] Routing and link up/down vs. netif up/down

2014-06-05 Thread Fabian Koch
Hey Simon, This is the first problem. A setup like this is not really supported in lwIP. We do have additional hooks to enable this, but it's not meant to work out-of-the-box. I only found LWIP_HOOK_IP4_INPUT and LWIP_HOOK_IP4_ROUTE. In recent versions (or in git master only?) you can

Re: [lwip-users] Routing and link up/down vs. netif up/down

2014-06-04 Thread Simon Goldschmidt
Fabian Koch wrote: I have two netifs and they are both in the same subnet. This is the first problem. A setup like this is not really supported in lwIP. We do have additional hooks to enable this, but it's not meant to work out-of-the-box. [..] But when I pull the plug on netif one, all

[lwip-users] Routing and link up/down vs. netif up/down

2014-06-04 Thread Fabian Koch
Hey guys, I ran into a problem and wonder if my solution is the right thing to do or if maybe LwIP should be changed: I have two netifs and they are both in the same subnet. When I create connections to other hosts on the net, they end up getting physically sent on the first netif because that