Skip to content
Commit 78e84eb3 authored by Robert Lubos's avatar Robert Lubos Committed by Maureen Helm
Browse files

net: coap: Adjust offset value after packet parsing



It is important that offset is set in the same manner, regardless of the
origin packet - it should indicate the final packet length in both
cases, when the packet is generated on the Zephyr side with CoAP APIs,
and when it's parsed from the UDP datagram. This allows for functions
like `coap_packet_get_payload()` to work correcty in both cases.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 66766581
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment