[ECOS] Dynamic IP/DHCP/Routing the 'right way'
Tue Jun 6 12:38:00 GMT 2006
I suppose you use LWIP stack. At the end of your mail, you write tat you will do the same for DNS, I don't think that LWIP supports DNS. If you want to change IP/gateway... while your programme is running, i think the best way is to use ioctl functions. Most of ioctl commands are not supported by LWIP. I think you should chose freebsd stack for your project. Of course LWIP is very light and simple to undestand but freebsd is more complete. you have to make a choice:)
---------- Original Message ----------------------------------
From: "Laurie Gellatly" <email@example.com>
Date: Tue, 6 Jun 2006 20:36:52 +1000
>I'll be working with the PHYTEC2294 board in preparation to using the
>Philips LPC2210 and LPC2102 in production.
>My project will allow the user to change the various IP settings
>(Address/Mask/gateway/DHCP) while the system is running. I.E. address
>and mask are updated (old addresses are deleted).
>Gateway changes cause the default route to be updated. DHCP can be
>I've found some older posts about this and tried them. Maybe I missed
>something but so far I've not found a single solution that covers all my
>needs. Is there such a solution or is there a 'right way' to achieve
>Also saw a post about using an incoming packet to learn the IP when the
>device is ping'ed for instance. This could be quite useful as well.
>Anyone have this in code already or can at least point me in the right
>direction of what to do?
>After these I'll need to do the same for NTP and DNS.
>Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
Sent via the WebMail system at elsys-design.com
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss