lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Sending a packet to ETH standard gateway with an active


From: Marco Jakobs
Subject: Re: [lwip-users] Sending a packet to ETH standard gateway with an active PPP connection
Date: Tue, 15 Dec 2009 19:15:36 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

address@hidden schrieb:
Did you know there's an SNTP client available for lwIPin the contrib module, available via CVS? No need to write your own.
Yes, i know and i have seen. But i want to do it myself, using the netconn API which fits best in my project (why mixing up so much API's). And for training, to get more experience with this stuff.
lwIP doesn't implement a real routing table. In addition (if I remember correctly), PPP sets its netif as default netif, meaning if no best match is found, the packet will be sent via PPP. Still, binding to the ethernet netif's address should somehow work... You might want to take a look at ip_route() when the PPP netif is up.
I'll do this when i have some time left for that (there are some more important points waiting). But binding the connection to the ETH-IP is definitely not working for that. The behaviour of PPP to become the default route is perfect, but this is an exception (sending SNTP over a really slow radio network which has no timeserver isn't really useful ;-) )

Marco


reply via email to

[Prev in Thread] Current Thread [Next in Thread]