mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
806f33fce4
When decoding IPHC in a fragmented datagram, relying on the size of the allocated space for the decoded packet is wrong when fragments are forwarded and decoded on an intermediate node (for which the reassembly buffer's space is used): Using the full datagram size for allocation in this case would be wasteful, so the allocated space is only marginally larger than the fragment's compressed form. This in turn results in the wrong UDP payload size being chosen and even worse being forwarded to the subsequent nodes. This change uses the (virtual) reassembly buffer's `datagram_size` instead of relying on the allocated space for the encoded datagram/fragment. |
||
---|---|---|
.. | ||
gnrc_sixlowpan_iphc.c | ||
Makefile |