zephyr/tests/subsys/openthread
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
..
app.overlay tests: subsys: openthread: refactor test 2022-08-10 11:57:34 +02:00
CMakeLists.txt net: openthread: Move glue code into module directory 2022-07-11 11:00:12 +02:00
prj.conf ztest: mock: migrate openthread tests to FFF and new ztest API 2022-08-08 06:56:43 +01:00
radio_stub.c tests: subsys: openthread: refactor test 2022-08-10 11:57:34 +02:00
radio_test.c net: pkt: Introduce minimum length requirement to net_pkt_get_frag() 2022-11-19 07:39:32 -05:00
testcase.yaml