This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Loopback Interface in Ecos



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]