Linux-CAN / SocketCAN user space applications
 
 
 
 
Go to file
Oliver Hartkopp c9422deb0b slcanpty: handle incomplete messages from pty correctly
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>
2013-06-08 12:57:17 +02:00
config/m4 add autotools infrastructure 2010-04-19 12:12:18 +00:00
include cangw: support new can-gw features for Linux 3.9+ 2013-01-29 20:17:52 +01:00
.gitignore gitignore: added tarballs 2012-01-11 12:14:15 +01:00
Android.mk can-utils: AOSP build improvements 2013-02-18 10:21:34 +01:00
GNUmakefile.am autotools: adopt to new location for kernel headers 2012-01-11 12:14:15 +01:00
Makefile remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
asc2log.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
autogen.sh add autotools infrastructure 2010-04-19 12:12:18 +00:00
bcmserver.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
can-calc-bit-timing.c can-calc-bit-timing: add support for ti_hecc 2012-11-26 21:57:57 +01:00
canbusload.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
candump.c candump: Add timeout option if no message has been received 2013-02-12 17:56:35 +01:00
canfdtest.c treewide: replace berlios contact email by linux-can@vger.kernel.org 2012-01-11 12:14:15 +01:00
cangen.c cangen: use long long in time computation for -g to support >2.1s 2013-02-07 13:57:49 +01:00
cangw.c cangw: fix inverse filter display when printing the configured rules 2013-01-29 20:50:46 +01:00
canlogserver.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
canplayer.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
cansend.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
cansniffer.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
configure.ac configure: enable silent rules if available 2012-11-26 21:57:45 +01:00
isotpdump.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
isotprecv.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
isotpsend.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
isotpserver.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
isotpsniffer.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
isotptun.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
lib.c lib: add support for non-zero dlc values in CAN 2.0B RTR frames 2013-02-15 23:25:13 +01:00
lib.h lib: fix typo: exended -> extended 2013-02-15 23:39:32 +01:00
log2asc.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
log2long.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
slcan_attach.c remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00
slcand.c slcand: fix build warnings 2013-02-04 12:11:32 +01:00
slcanpty.c slcanpty: handle incomplete messages from pty correctly 2013-06-08 12:57:17 +02:00
terminal.h remove obsolete SVN ID tags 2012-11-14 20:57:16 +01:00