zephyr/subsys/net/l2
Robert Lubos 387a66131e net: pkt: Introduce minimum length requirement to net_pkt_get_frag()
net_pkt_get_frag() and a few other functions did not specify the
allocated fragment length, incorrectly assuming that fixed-sized
buffers are always used.

In order to make the function work properly also with variable-sized
buffers, extend the function argument list with minimum expected
fragment length parameter. This allows to use net_buf_alloc_len()
allocator in variable buffer length configuration, as well as verify if
the fixed-sized buffer is large enough to satisfy the requirements
otherwise.

Update the existing codebase to provide the expected fragment length,
based on the context.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-11-19 07:39:32 -05:00
..
bluetooth net: pkt: Introduce minimum length requirement to net_pkt_get_frag() 2022-11-19 07:39:32 -05:00
canbus drivers: net: canbus: move CAN bus network driver to drivers/net 2022-07-13 10:34:51 +02:00
dummy subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ethernet net: pkt: Introduce minimum length requirement to net_pkt_get_frag() 2022-11-19 07:39:32 -05:00
ieee802154 treewide: Use CONFIG_*_ENDIAN instead of __BYTE_ORDER__ 2022-10-28 19:23:46 +09:00
openthread net: openthread: Align OpenThread L2 with iface state upgrade 2022-10-20 10:00:31 +02:00
ppp net: pkt: Introduce minimum length requirement to net_pkt_get_frag() 2022-11-19 07:39:32 -05:00
virtual net: virtual: Align virtual L2 with iface status upgrade 2022-10-20 10:00:31 +02:00
wifi net: wifi: Fix MFP when security type is not given 2022-10-26 12:00:11 +02:00
CMakeLists.txt net: remove unmaintained 6LoCAN implementation 2022-03-09 18:07:31 +01:00
Kconfig net: l2: ieee802154: improve inline comments 2022-08-04 13:44:06 +02:00