From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: Andrew Lunn Cc: ecos-discuss@sources.redhat.com, Amit Bhor Subject: Re: [ECOS] how to assign an IP address ? Date: Fri, 17 Aug 2001 06:53:00 -0000 Message-id: References: <20010817154214.C5320@biferten.ma.tech.ascom.ch> X-SW-Source: 2001-08/msg00607.html On 17-Aug-2001 Andrew Lunn wrote: > 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. > Additionally, I'm pretty sure that the loopback interface does not even function in the older 1.3.1 codebase. Use the CVS.