mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-12 21:41:28 +00:00
Allocate PBUF_RAW instead of PBUF_LINK type pbufs. Fixes bug #1890 for this driver.
This commit is contained in:
parent
b6b905412e
commit
b311ab0d53
@ -403,7 +403,7 @@ static struct pbuf *cs8900_input(struct netif *netif)
|
||||
if (len > 0)
|
||||
{
|
||||
// allocate a pbuf chain with total length 'len'
|
||||
p = pbuf_alloc(PBUF_LINK, len, PBUF_POOL);
|
||||
p = pbuf_alloc(PBUF_RAW, len, PBUF_POOL);
|
||||
if (p != 0)
|
||||
{
|
||||
for (q = p; q != 0; q = q->next)
|
||||
|
@ -133,7 +133,7 @@ low_level_input(struct ethernetif *ethernetif)
|
||||
len = ;
|
||||
|
||||
/* We allocate a pbuf chain of pbufs from the pool. */
|
||||
p = pbuf_alloc(PBUF_LINK, len, PBUF_POOL);
|
||||
p = pbuf_alloc(PBUF_RAW, len, PBUF_POOL);
|
||||
|
||||
if(p != NULL) {
|
||||
/* We iterate over the pbuf chain until we have read the entire
|
||||
|
Loading…
Reference in New Issue
Block a user