[ECOS] Getting lwIP SLIP to work

Oyvind Harboe oyvind@harboe.org
Fri Mar 19 14:51:00 GMT 2004


I'm having problems with lwIP SLIP stability. Specifically
I can connect using ftp to ftpd and download, but after 2-10
downloads of a 6k file, the system eventually livelocks. It is "stuck" 
in the SLIP loop and is unable to allocate more memory.

Has anybody managed to deploy lwIP SLIP  sucessfully?

My current hunch is that lwIP does not properly shut down connections 
after it has run out of of memory(in tcp_slowtmr?). 

As near as I can understand the intended 
behaviour is for lwIP to drop connections until memory is freed up. 
I believe the ftpd session sits in lwip_recv() forever waiting for more data.

Configuring the lwIP memory options is not for the faint of heart! :-)


I had to make the attached changes to get lwIP over SLIP up and running.


Øyvind

-------------- next part --------------
A non-text attachment was scrubbed...
Name: slipfix.txt
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040319/bd803c49/attachment.bin>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list