Re: [lwip-users] Gateway problem with LwIP

2013-01-02 Thread sb80
Hello Simon, Sorry for the late answer, i was in the holidays. Thanks for the information. if you have additional information about routing with lwip, i will pleased to hear from you :-) Stefan - Thanks Stefan (Germany) -- View this message in context: http://lwip.100.n7.nabble.com/Gate

Re: [lwip-users] Gateway problem with LwIP

2012-12-21 Thread goldsi...@gmx.de
sb80 wrote: have you an example code for me to realize this routing function? No, I'm sorry there is no extended routing code available, and I can't write it for you. should I define in the the opt.h something like this Yes, the definition looks good. and in ip.c No, place the functio

Re: [lwip-users] Gateway problem with LwIP

2012-12-21 Thread sb80
have you an example code for me to realize this routing function? should I define in the the opt.h something like this original: /** * LWIP_HOOK_IP4_ROUTE(dest): * - called from ip_route() (IPv4) * - dest: destination IPv4 address * Returns the destination netif or NULL if no destination neti

Re: [lwip-users] Gateway problem with LwIP

2012-12-20 Thread goldsi...@gmx.de
sb80 wrote: Is it possible to realize a multipath routing in the lwip You can define LWIP_HOOK_IP4_ROUTE(dest) to a function which takes the destination IPv4 address and returns the netif to be used, but again, this is only supported in newer versions of lwIP (I think from 1.4.0 on). Do yo

Re: [lwip-users] Gateway problem with LwIP

2012-12-20 Thread sb80
Hi Simon, Thanks. That was a very helpful information. Is it possible to realize a multipath routing in the lwip or know you a project which reallized that? In the init.h i didn't found the #define, so i have a old version, but in the moment i won't upgrade the lwip, because the lwip is included

Re: [lwip-users] Gateway problem with LwIP

2012-12-19 Thread goldsi...@gmx.de
sb80 wrote: Now my problem: If i ping the IP 192.168.10.40 on eth1, no ARP, to get the MAC from the gateway, appears on eth1, but on eth0 a ARP appears with the message "who has 192.168.0.1? Tell 192.168.0.10" If eth0 have no defaultgateway (0.0.0.0) and I make the same ping on eth1 (like above)

[lwip-users] Gateway problem with LwIP

2012-12-18 Thread sb80
Hello, I work for the first time in my life with the LwIP Stack and I have some problems. I hope anyone have a idea to fix it. I have a netX500 processor from hilscher with the OS rtx and the OS use the LwIp Stack (I don't know the version). The netX500 offers two ethernet interfaces (et0,eth1).