[ECOS] how to assign an IP address ?

Andrew Lunn andrew.lunn@ascom.ch
Fri Aug 17 06:42:00 GMT 2001


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



More information about the Ecos-discuss mailing list