From 280ea436d4322f1ad33319774c7480f7d3b5057f Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Thu, 3 Dec 2020 20:19:21 +0100 Subject: [PATCH] isotp: add define for SF_BROADCAST support 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(). Add the CAN_ISOTP_SF_BROADCAST define from Linux UAPI includes. Signed-off-by: Oliver Hartkopp --- include/linux/can/isotp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/can/isotp.h b/include/linux/can/isotp.h index 7793b26a..c55935b6 100644 --- a/include/linux/can/isotp.h +++ b/include/linux/can/isotp.h @@ -135,7 +135,7 @@ struct can_isotp_ll_options { #define CAN_ISOTP_FORCE_RXSTMIN 0x100 /* ignore CFs depending on rx stmin */ #define CAN_ISOTP_RX_EXT_ADDR 0x200 /* different rx extended addressing */ #define CAN_ISOTP_WAIT_TX_DONE 0x400 /* wait for tx completion */ - +#define CAN_ISOTP_SF_BROADCAST 0x800 /* 1-to-N functional addressing */ /* default values */