zephyr/tests/subsys
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
..
canbus/isotp drivers: can: skip all CAN loopback mode tests for kvaser,pcican 2022-11-01 15:22:31 -04:00
cpp ec_host_cmd: move the host_cmd_periph.h to subdirectory 2022-11-18 10:11:40 +01:00
debug tests: move to using CONFIG_MP_MAX_NUM_CPUS 2022-10-20 22:04:10 +09:00
dfu dfu: include MCUboot's bootutil_public.h 2022-09-19 18:36:37 +02:00
edac tests: ibecc: Use LOG api instead of TC_PRINT() 2022-11-19 14:18:40 +09:00
emul emul: Add EMUL_DT_GET 2022-08-17 15:47:52 +00:00
fs tests/multi-fs: Increase stack size for lfs tests 2022-11-08 10:44:36 +01:00
ipc/ipc_service tests: ipc_service: Add ipc_service test of deregistered endpoint 2022-10-11 13:03:29 +02:00
jwt test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
logging tests/log_stack: Increase idle stack size to 2048 2022-11-08 10:44:36 +01:00
mgmt ec_host_cmd: add missing fields and improve compatibility 2022-11-18 10:11:40 +01:00
modbus modbus: add user data for adu callback 2022-09-02 10:51:57 +02:00
openthread net: pkt: Introduce minimum length requirement to net_pkt_get_frag() 2022-11-19 07:39:32 -05:00
pm drivers: power_domain: Update drivers to use devicetree Kconfig symbol 2022-11-02 15:41:17 +09:00
portability tests: move to using CONFIG_MP_MAX_NUM_CPUS 2022-10-20 22:04:10 +09:00
rtio/rtio_api rtio: Userspace support 2022-11-08 10:44:03 +01:00
sd/sdmmc includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
settings ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
shell tests: shell: add missing assert 2022-09-06 14:12:33 +00:00
storage storage/flash_map: Macros for accessing fixed-partitions 2022-09-06 09:56:37 +02:00
tracing/tracing_api tests: tracing_api: move to new ztest API 2022-09-08 10:39:10 +02:00
usb tests: subsys: usb: device: add zassert to judge whether USB enable 2022-09-02 11:23:31 +00:00
zbus tests: zbus: Add zbus runtime observer registration tests 2022-11-14 17:25:29 -05:00