This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How can I ping the target from my host?
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: Shulin Cui <cuishulin at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 16 Jan 2002 02:09:06 +0000
- Subject: Re: [ECOS] How can I ping the target from my host?
- References: <F196bNDN4CxpAOAkK5L000270da@hotmail.com>
Shulin Cui wrote:
>
> Hi,
>
> I want to know , When I used the followed code, I could not
> ping from a host to the target?
>
> I create a thread with priority 20,the main body of the thread is:
> {
> init_all_network_interfaces();
> while(1);
> }
I may be wrong on this, but I believe that thread will prevent the lower
priority network delivery thread from running. Now I'm not certain that
that thread is required to run to return ICMP responses, but for "free
support" I'm not going to look and check. So try using cyg_thread_delay()
or sleep() or something instead.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine