From 682e01a40a0c169b602b161d979317d3a4e89d2c Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Thu, 3 Dec 2020 20:48:12 +0100 Subject: [PATCH] isotpsend: add SF_BROADCAST support for functional addressing When CAN_ISOTP_SF_BROADCAST is set in the CAN_ISOTP_OPTS flags the CAN_ISOTP socket is switched into functional addressing mode, where only single frame (SF) protocol data units can be send on the specified CAN interface and the given tp.tx_id after bind(). In opposite to normal and extended addressing this socket does not register a CAN-ID for reception which would be needed for a 1-to-1 ISOTP connection with a segmented bi-directional data transfer. The new option '-S' sets the CAN_ISOTP_SF_BROADCAST to test the option with different length settings, e.g. link layer data lengths. Signed-off-by: Oliver Hartkopp --- isotpsend.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/isotpsend.c b/isotpsend.c index 01572c9..3ea574c 100644 --- a/isotpsend.c +++ b/isotpsend.c @@ -72,6 +72,7 @@ void print_usage(char *prg) fprintf(stderr, " -f