[ECOS] TCP/IP stack: robustness agains port scan
Andrew Lunn
andrew.lunn@ascom.ch
Thu Oct 24 03:42:00 GMT 2002
> 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
More information about the Ecos-discuss
mailing list