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

net: ip: net_pkt: set pkt context, iface and family in net_pkt_get()



Commit 753daa65 ("net: pkt: Compute TX payload data length")
removed the default packet setup on incoming packets when they
belong to the rx_pkt pool.

Let's restore this behavior, as MBEDTLS processing in net_app library
needs to use packet family to determine IP header length on
incoming packets.

NOTE: A future cleanup patch could set the IP header length based
on the context IP family.  However, there are many places in the code
where this is being set, so care should be taken.

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