From d3b29dfa482592eb2762098c37108d3193b2015a Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Wed, 14 Oct 2020 09:28:22 +0200 Subject: [PATCH] includes: update to Linux 5.10 include files - isotp.h: use latest version and formatting - raw.h: introduce SCM_CAN_RAW_ERRQUEUE Signed-off-by: Oliver Hartkopp --- include/linux/can/isotp.h | 17 +++++++---------- include/linux/can/raw.h | 3 +++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/linux/can/isotp.h b/include/linux/can/isotp.h index 09935b5..7793b26 100644 --- a/include/linux/can/isotp.h +++ b/include/linux/can/isotp.h @@ -1,10 +1,10 @@ +/* SPDX-License-Identifier: ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-3-Clause) */ /* * linux/can/isotp.h * - * Definitions for isotp CAN sockets + * Definitions for isotp CAN sockets (ISO 15765-2:2016) * - * Author: Oliver Hartkopp - * Copyright (c) 2008 Volkswagen Group Electronic Research + * Copyright (c) 2020 Volkswagen Group Electronic Research * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -39,13 +39,12 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. - * - * Send feedback to */ -#ifndef CAN_ISOTP_H -#define CAN_ISOTP_H +#ifndef _UAPI_CAN_ISOTP_H +#define _UAPI_CAN_ISOTP_H +#include #include #define SOL_CAN_ISOTP (SOL_CAN_BASE + CAN_ISOTP) @@ -123,7 +122,6 @@ struct can_isotp_ll_options { /* by the CAN netdriver configuration */ }; - /* flags for isotp behaviour */ #define CAN_ISOTP_LISTEN_MODE 0x001 /* listen only (do not send FC) */ @@ -162,7 +160,6 @@ struct can_isotp_ll_options { * these default settings can be changed via sockopts. * For that reason the STmin value is intentionally _not_ checked for * consistency and copied directly into the flow control (FC) frame. - * */ -#endif +#endif /* !_UAPI_CAN_ISOTP_H */ diff --git a/include/linux/can/raw.h b/include/linux/can/raw.h index 6a11d30..3386aa8 100644 --- a/include/linux/can/raw.h +++ b/include/linux/can/raw.h @@ -49,6 +49,9 @@ #include #define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW) +enum { + SCM_CAN_RAW_ERRQUEUE = 1, +}; /* for socket options affecting the socket (not the global system) */