> > The questions:
> >
> > 1. Is the behaviour of 'jsr vcan0:30' correct like this?
> seems not. I will check (on the airplane, monday, yippie vcan!).
it was easier than expected:
Things have evolved a bit without decent testing
Index: can-utils/jsr.c
===================================================================
--- can-utils/jsr.c (revision 1255)
+++ can-utils/jsr.c (working copy)
@@ -205,7 +205,7 @@
}
}
if (pfd[1].revents) {
- ret = read(pfd[1].fd, buf, sizeof(buf));
+ ret = read(pfd[1].fd, buf, s.pkt_len);
if (ret < 0) {
ret = errno;
error(0, errno, "read(%s)",
libj1939_addr2str(&s.dst));
_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core