From 9bf2d1243b3a2a95d6bfc4b2f2fb437e87ad7168 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 6 Nov 2019 11:31:50 +0100 Subject: [PATCH] j1939: Following kernel updates Compatatibility for latest kernel/glibc version See: https://github.com/torvalds/linux/commit/0768e17073dc527ccd18ed5f96ce85f9985e9115 Follow j1939 integration in the kernel which remove SO_J1939_RECV_OWN Bug-AGL: SPEC-2932 Change-Id: Id01e92330582da299af675676987cd667272e2c5 Signed-off-by: Romain Forlot --- low-can-binding/utils/socketcan-j1939/socketcan-j1939.cpp | 3 +-- low-can-binding/utils/socketcan.hpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/low-can-binding/utils/socketcan-j1939/socketcan-j1939.cpp b/low-can-binding/utils/socketcan-j1939/socketcan-j1939.cpp index fdcfe3be..88bca560 100644 --- a/low-can-binding/utils/socketcan-j1939/socketcan-j1939.cpp +++ b/low-can-binding/utils/socketcan-j1939/socketcan-j1939.cpp @@ -107,7 +107,6 @@ namespace utils if(broadcast) broadcast_i = 1; setopt(SOL_CAN_J1939, SO_J1939_PROMISC, &promisc_i, sizeof(promisc_i)); - setopt(SOL_CAN_J1939, SO_J1939_RECV_OWN, &recv_own_msgs_i, sizeof(recv_own_msgs_i)); setopt(SOL_SOCKET, SO_BROADCAST, &broadcast_i, sizeof(broadcast_i)); } @@ -285,4 +284,4 @@ namespace utils } return 0; } -} \ No newline at end of file +} diff --git a/low-can-binding/utils/socketcan.hpp b/low-can-binding/utils/socketcan.hpp index a3b31591..7b2501af 100644 --- a/low-can-binding/utils/socketcan.hpp +++ b/low-can-binding/utils/socketcan.hpp @@ -21,6 +21,7 @@ #include #include +#include #include #include "../binding/low-can-hat.hpp" -- 2.16.6