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 21, 2020
1 parent 2733a12 commit 1a24b07
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 1a24b07

Please sign in to comment.