This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: how to assign an IP address ?
- To: Amit Bhor <Amitb at myrealbox dot com>
- Subject: Re: [ECOS] how to assign an IP address ?
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Date: Fri, 17 Aug 2001 15:42:14 +0200
- Cc: ecos-discuss at sources dot redhat dot com
- References: <998055464.40fb6680Amitb@myrealbox.com>
On Fri, Aug 17, 2001 at 01:37:44PM +0000, Amit Bhor wrote:
> hello everyone ,
>
> i compiled the ecos code with networking support with the test_ping.c program ... but how do i assign a IP address to the loopback interface ? ..I can see some bootp code but can i assign an IP address statically ? ..if yes...how ? I am running the ecos 1.3.1 with the stable tcp/ip stack (not the current cvs code)...
First off, i suggest you use the anon cvs version. There have been
lots of bug fixes to the stack which are only in CVS.
The function init_all_network_interfaces() will assigned the IP
address 127.0.0.1 to the loopback device. You don't need to do
anything so long as you call this function.
Andrw