This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Loopback Interface in Ecos
- To: <gthomas at redhat dot com>
- Subject: [ECOS] Loopback Interface in Ecos
- From: "Sorin Babeanu" <sorin at netappi dot com>
- Date: Thu, 11 May 2000 12:07:35 +0100
- Cc: <ecos-discuss at sourceware dot cygnus dot com>, "Liviu Ionescu (E-mail)" <ilg at livius dot net>
- Reply-To: <sorin at netappi dot com>
Hello,
I'm working on an i960 platform ports for Ecos. Before the driver for
557(559) will be ready I need to test on a syntetic target (freebsd) that
the loopback interface is working properly.
I have made the necessary configuration :
ecosconfig new "target"
ecosconfig add net
ecosconfig add net_drivers /* I included just the common part for
drivers */
ecosconfig tree
After compiling tests, I have tested tcp_echo modified with INADDR_LOOPBACK
instead of INADDR_ANY.
I have got the following error : bind /source/ error: Can't assign requested
address
The loopback interface has not been added to interface queue and because of
that "in_addr" in sys/netinet/in_pcb.c (in_pcbbind(...)) is empty. Am I
wrong ? Did the interface need to be added to that queue ?
Also in cyg_net_init in __NETDEVTAB__ is NULL and ifnet queue is empty so no
device initialization could be performed.
Tell me please what did I missed ?
Sorin Babeanu