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
|