This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
connect ethernet cable at run-time
- From: Lars Dahlin <haraxidix at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 24 Sep 2009 12:34:40 +0200
- Subject: [ECOS] connect ethernet cable at run-time
Hi all!
I have the following problem:
I want to be able to connect the ethernet cable and it shouldn't be necesary to
restart ecos. As far as I know (please correct me if i'm wrong) incoming ip
and arp requests are handled by the thread cyg_netint. It seems that this thread
is put to sleep if the network cable is not connected.
I can see two possiblilties:
1) Not to let the thread cyg_netint be put to sleep, even if cable is
not connected.
2) When the network cable is connected, cyg_netint wakes up and does its thing.
Or is there a better way? The problem is that i dont know how to do either way.
All ideas are welcome. Thank you in advance.
Best Regards
Lars Dahlin
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss