mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-07-07 20:29:04 +00:00
No need to allocate a PBUF_LINK for incoming packets, PBUF_RAW is enough
This commit is contained in:
parent
5f05529a22
commit
9e4a33112b
@ -209,7 +209,7 @@ low_level_input(struct netif *netif, void *packet, int packet_len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* We allocate a pbuf chain of pbufs from the pool. */
|
/* We allocate a pbuf chain of pbufs from the pool. */
|
||||||
p = pbuf_alloc(PBUF_LINK, (u16_t)length, PBUF_POOL);
|
p = pbuf_alloc(PBUF_RAW, (u16_t)length, PBUF_POOL);
|
||||||
LWIP_DEBUGF(NETIF_DEBUG, ("netif: recv length %i p->tot_len %i\n", length, (int)p->tot_len));
|
LWIP_DEBUGF(NETIF_DEBUG, ("netif: recv length %i p->tot_len %i\n", length, (int)p->tot_len));
|
||||||
|
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user