can: add socket type for CAN_J1939
authorKurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Mon, 8 Oct 2018 09:48:34 +0000 (11:48 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 4 Sep 2019 11:29:15 +0000 (13:29 +0200)
This patch is a preparation for SAE J1939 and adds CAN_J1939
socket type.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
include/uapi/linux/can.h

index 0afb7d8e867f70827138c273e302cb9899b4fd7b..06d92d6be6e611e0159fc05b02deb370b76f3aa7 100644 (file)
@@ -157,7 +157,8 @@ struct canfd_frame {
 #define CAN_TP20       4 /* VAG Transport Protocol v2.0 */
 #define CAN_MCNET      5 /* Bosch MCNet */
 #define CAN_ISOTP      6 /* ISO 15765-2 Transport Protocol */
-#define CAN_NPROTO     7
+#define CAN_J1939      7 /* SAE J1939 */
+#define CAN_NPROTO     8
 
 #define SOL_CAN_BASE 100