Skip to content

Commit

Permalink
[OpenThread] ReceivePacket should use PBUF_LINK when allocating pbuf (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
erjiaqing authored Jul 14, 2020
1 parent db9b861 commit ffa6de3
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 ffa6de3

Please sign in to comment.