Oliver Hartkopp 42bf50a179 can: isotp: support MSG_TRUNC flag when reading from socket
When providing the MSG_TRUNC flag via recvmsg() syscall the return value
provides the real length of the packet or datagram, even when it was longer
than the passed buffer.

Fixes: e057dd3fc20f ("can: add ISO 15765-2:2016 transport protocol")
Link: https://github.com/linux-can/can-utils/issues/347#issuecomment-1065932671
Link: https://lore.kernel.org/all/20220316164258.54155-3-socketcan@hartkopp.net
Suggested-by: Derek Will <derekrobertwill@gmail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-03-16 21:41:40 +01:00
..
2022-03-07 09:48:55 +01:00
2022-01-22 08:33:37 +02:00
2022-03-07 11:40:41 +00:00
2022-03-04 12:02:19 +00:00
2022-03-04 12:02:19 +00:00
2022-01-27 13:53:27 +00:00
2022-01-26 07:44:01 +01:00
2022-03-11 13:00:17 -08:00
2022-02-10 15:29:39 +00:00
2022-03-07 11:40:41 +00:00
2022-03-11 13:00:17 -08:00
2022-03-03 09:55:28 +00:00