mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-06 06:49:53 +02:00
c9422deb0b83a4e21ad3bb81495e8a9acf43664d
Make sure that we have minimum one complete SLCAN messages from pty in the receive buffer before we start processing the received SLCAN message. Fragments of a received incomplete message are stored to be appended by the next read() syscall in pty2can(). This patch is a rework of an initial patch from Ulrich Escher. Tnx! Reported-by: Ulrich Escher <git@myvdr.de> Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Description
Linux-CAN / SocketCAN user space applications
2.9 MiB
Languages
C
98.1%
CMake
0.7%
Makefile
0.6%
Shell
0.5%