diff --git a/src/arch/c16x/netif/cs8900if.c b/src/arch/c16x/netif/cs8900if.c index f5e42339..f2e9175e 100644 --- a/src/arch/c16x/netif/cs8900if.c +++ b/src/arch/c16x/netif/cs8900if.c @@ -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) diff --git a/src/netif/ethernetif.c b/src/netif/ethernetif.c index 7b4e0cf1..0047fc79 100644 --- a/src/netif/ethernetif.c +++ b/src/netif/ethernetif.c @@ -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