zephyr/subsys/canbus
Martin Jäger 27fc74feff canbus: isotp: fix net_buf usage in recv function
isotp_recv and the called pull_frags functions were violating the
net_buf API by interacting directly with net_buf fragments pulled from
a k_fifo.

This commit reworks the isotp_recv function. The currently processed
net_buf is stored in an additional context variable so that reading from
it can be continued in the next call to isotp_recv if not all fragments
could be fit into the provided uint8_t *data buffer.

Fixes #40070

Signed-off-by: Martin Jäger <martin@libre.solar>
2021-11-09 18:12:08 +02:00
..
isotp canbus: isotp: fix net_buf usage in recv function 2021-11-09 18:12:08 +02:00
CMakeLists.txt modules: canopennode: move glue code to modules directory 2021-07-01 13:32:18 -04:00
Kconfig modules: canopennode: move glue code to modules directory 2021-07-01 13:32:18 -04:00
Kconfig.canopen modules: canopennode: move glue code to modules directory 2021-07-01 13:32:18 -04:00