This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: obtaining ip assigned by dhcp at runtime
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Aaron M Paulos <apaulos at ece dot cmu dot edu>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 29 Jun 2005 22:57:36 +0200
- Subject: Re: [ECOS] obtaining ip assigned by dhcp at runtime
- References: <001601c57ceb$d7588a70$3201a8c0@macrtft>
On Wed, Jun 29, 2005 at 04:48:01PM -0400, Aaron M Paulos wrote:
> Hello,
>
> I'm working with demo boards/gdb stub to develop software, and basically
> have multiple logical IPs aliased to a single physical interface.
>
> Is there a function call succeeding init_all_network_interfaces(), to
> get the assigned DHCP IP?
Have you seen show_network_tables in
net/bsd_tcpip/current/src/ecos/support.c. It shows you one way to get
this information.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss