This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Ethernet reception error
- From: Leandro Fanzone <leandro at hasar dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 17 Aug 2010 09:29:46 -0300
- Subject: [ECOS] Ethernet reception error
Hello, I'm using eCos under x86, and using an ethernet onboard card. If
I setup a simple TCP connection (eCos = server, Windows = client), and I
send something from the client to the server, with asserts on I have the
following:
CYG_ASSERT( rxd + DS_BUFP + MAX_RX_PACKET_SIZE >= from_p,
"from_p overflow in rx" );
within if_r6040.c, in r6040_recv(...). That only happens when I send()
packets roughly larger than MAX_RX_PACKET_SIZE (1536 bytes); below that
value there's no problem. On the other hand, if I turn off asserts, that
seems to produce no side effects whatsoever, but I'm never really sure.
Any insights? Thank you in advance.
--
Leandro Fanzone
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss