This is the mail archive of the ecos-discuss@sources.redhat.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]
Other format: [Raw text]

connect problem in lwip


I am using lwip in eCOS on linux synthetic target.
I am getting problem in "connect" socket call while
using LOOPBACK addresses.Connect calls eth_drv_write.
It crashes in eth_drv_write.
****************************************************
struct eth_drv_sg sg_list[MAX_ETH_DRV_SG];
struct eth_drv_sc *sc = __local_enet_sc;
int sg_len = 1;

while (!(sc->funs->can_send)(sc)) {
  	cyg_thread_delay(1);
    }
****************************************************
__local_ernet_sc turns out to be NULL, which should be
initialized by eth_drv_init, but eth_drv_init is never
called.

I have following doubts:

1. Why is eth_drv_write called in case of LOOPBACK?
2. When is eth_drv_init called ?
3. Is it necessary to call
init_all_network_interfaces" in lwip? 

Thanx
Vikal.

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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