Skip to content

Commit

Permalink
[OpenThread] ReceivePacket should use PBUF_LINK when allocating pbuf (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
erjiaqing authored and kedars committed Jul 19, 2020
1 parent e163a4b commit 29db11d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ void GenericThreadStackManagerImpl_OpenThread_LwIP<ImplClass>::ReceivePacket(otM
struct netif * threadNetIf = ThreadStackMgrImpl().ThreadNetIf();

// Allocate an LwIP pbuf to hold the inbound packet.
pbuf = pbuf_alloc(PBUF_RAW, pktLen, PBUF_POOL);
pbuf = pbuf_alloc(PBUF_LINK, pktLen, PBUF_POOL);
VerifyOrExit(pbuf != NULL, lwipErr = ERR_MEM);

// Copy the packet data from the OpenThread message object to the pbuf.
Expand Down

0 comments on commit 29db11d

Please sign in to comment.