← Commit list

8953429a8

Thomas Devoogdt
Thomas Devoogdt
2024-10-06
SUCCESS Duration: 155s

Subject

networking/libiproute/iplink.c: fix support for older kernels

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/libiproute/iplink.c+21 -0
@@ -51,6 +51,27 @@ struct ifla_vlan_flags {
};
#endif
+#if ENABLE_FEATURE_IP_LINK_CAN
+# ifndef CAN_CTRLMODE_ONE_SHOT
+# define CAN_CTRLMODE_ONE_SHOT 0x08 /* One-Shot mode */
+# endif
+# ifndef CAN_CTRLMODE_BERR_REPORTING
+# define CAN_CTRLMODE_BERR_REPORTING 0x10 /* Bus-error reporting */
+# endif
+# ifndef CAN_CTRLMODE_FD
+# define CAN_CTRLMODE_FD 0x20 /* CAN FD mode */
+# endif
+# ifndef CAN_CTRLMODE_PRESUME_ACK
+# define CAN_CTRLMODE_PRESUME_ACK 0x40 /* Ignore missing CAN ACKs */
+# endif
+# ifndef CAN_CTRLMODE_FD_NON_ISO
+# define CAN_CTRLMODE_FD_NON_ISO 0x80 /* CAN FD in non-ISO mode */
+# endif
+# ifndef IFLA_CAN_TERMINATION
+# define IFLA_CAN_TERMINATION 11
+# endif
+#endif
+
/* taken from linux/sockios.h */
#define SIOCSIFNAME 0x8923 /* set interface name */