Skip to content
Commit 3599d793 authored by Michael Scott's avatar Michael Scott Committed by Anas Nashif
Browse files

net: net_app: set packet data_len on incoming packets



This fixes a bug when calling net_pkt_append[_all] which uses
pkt->data_len as part of the maximum packet length calculation
when the net_context is set.

Without this change the maximum packet length is calculated as 0
(the value of pkt->data_len) and an ENOMEM error is returned.

Signed-off-by: default avatarMichael Scott <michael@opensourcefoundries.com>
parent e71f95b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment