Allocate PBUF_RAW instead of PBUF_LINK type pbufs. Fixes bug #1890 for this driver.

This commit is contained in:
likewise 2003-01-08 09:09:35 +00:00
parent b6b905412e
commit b311ab0d53
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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