This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ecosif_input
- From: Savin Zlobec <savin at elatec dot si>
- To: sparkecos at hotmail dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 05 Sep 2003 13:54:50 +0200
- Subject: [ECOS] Re: ecosif_input
Hi,
Iam running an application similiar to the udp echo test using the
lwip stack, on an i386 target, with Ethernet support.
I have created an udp client application (not on eCos), when I run my
application it waits for the udp data as expected, however when I run
my udp client program (with my eCos IP address and udp echo port). I
recieve the message, ecosif_input: low_level_input returned NULL, I
have traced this to the eth_drv_recv function where pbuf_alloc
function is called, then pbuf_pool_alloc function is called but it
return zero. This leads to the ecosif message being printed, and
eth_drv_recv function getting stuck in a loop.
Does anyone know why this happens, have a setup something up wrong?
quite new to this.
The pbuf_pool_alloc function returns NULL if it can't allocate requested
pbufs (out of memory).
This usually means that you are receiving packets faster than you can
process them.
Check the lwip memory and udp settings in you ecos.ecc or check yor
communication protocol.
savin
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss