This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ip address
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Diego Duyvejonck <diego dot duyvejonck at skynet dot be>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 11 Apr 2005 01:57:31 -0600
- Subject: Re: [ECOS] ip address
- Organization: MLB Associates
- References: <000801c53d26$54ed3310$07fca8c0@homeclt01>
On Sat, 2005-04-09 at 19:05 +0200, Diego Duyvejonck wrote:
> Hi,
> During network initialisation, eCos will get its ip address from a dhcp
> server or just have a predefined fixed ip address depending on the
> kernel configuration.
> However, I would prefer to use the bootp flag status from the redboot
> config block to decide how to get the ip address.
> Is there any trivial way to change the way to obtain the ip address at
> startup (on the fly) ?
> Using the dhcp client + fall back to a fixed address is not really an
> option, since this can only be done after some timeout.
> When the system is installed in a fixed and well defined environment
> with no dhcp server on the network, this timeout is wasted time.
> Any idea ?
Your application could read the 'fconfig' values from RedBoot and
then behave the way that it does. It's straight forward to access
these data using the CYGNUM_CALL_IF_FLASH_CFG_GET function.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss