[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] pbuf misuse or snd_queuelen corruption.
From: |
Andrew Foster |
Subject: |
RE: [lwip-users] pbuf misuse or snd_queuelen corruption. |
Date: |
Mon, 18 Oct 2010 12:02:09 -0400 |
Simon,
I've been running with the SYS_LIGHTWEIGHT_PROT defined as 1 and NO_SYS
defined as 0. Do the pbuf/tcpip functions declare/protect/unprotect the
appropriate structures or do I need to protect the lwIP calls myself?
Thanks,
Andrew
-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: Monday, October 18, 2010 11:54
To: Mailing list for lwIP users
Subject: Re: [lwip-users] pbuf misuse or snd_queuelen corruption.
Andrew Foster wrote:
> However, I still have an
> allocation on reception of data and a free when receiving unsupported
> packet types (!IP or !ARP). These would still happen from context of
the
> low level input and not the tcpip_thread. Should this be restructured
as
> well?
That should be protected by setting SYS_LIGHTWEIGHT_PROT to 1. Many
drivers use lwIP this way. The ARP problem was a bug in lwIP and its
example drivers which was fixed around 1.3.0.
Simon
_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users