This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: TCP/IP stack: robustness agains port scan
> Can't read initialization parameters: Connection reset by peer
tcp_echo.c:
// Wait for "source" to tell us the testing paramters
if (do_read(e_source, &nparams, sizeof(nparams)) != sizeof(nparams)) {
pexit("Can't read initialization parameters");
}
void
...
pexit(char *s)
{
TNR_OFF();
perror(s);
cyg_test_exit();
}
Since you have not told the test program what to do, its exited!
Hence it will not ping anymore.
Reading the code solves most problems very quickly.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss