busybox/networking/libiproute
Thomas Devoogdt 8953429a82 networking/libiproute/iplink.c: fix support for older kernels
- The CAN netlink interface has been added in Linux v2.6.31 with only 3 options [1]:

  CAN_CTRLMODE_LOOPBACK    0x1  /* Loopback mode */
  CAN_CTRLMODE_LISTENONLY  0x2  /* Listen-only mode */
  CAN_CTRLMODE_3_SAMPLES   0x4  /* Triple sampling mode */

  So define the other options.

- IFLA_CAN_TERMINATION has been added in Linux 4.11 [2],
  define it for older kernels.

[1] https://github.com/torvalds/linux/blob/v2.6.31/include/linux/can/netlink.h#L80-L82
[2] 12a6075cab

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2024-10-06 18:25:01 +02:00
..
ip_common.h ip address: Add support for "valid_lft" and "preferred_lft" options 2020-07-31 18:48:50 +02:00
ip_parse_common_args.c ip: code shrink 2023-04-23 12:37:46 +02:00
ipaddress.c ip: code shrink 2023-04-23 12:37:46 +02:00
iplink.c networking/libiproute/iplink.c: fix support for older kernels 2024-10-06 18:25:01 +02:00
ipneigh.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
iproute.c libiproute: fix filtering ip6 route by table id 2023-07-09 20:26:23 +02:00
iprule.c libbb: introduce and use fputs_stdout 2021-02-03 20:52:40 +01:00
iptunnel.c libbb: code shrink: introduce and use [_]exit_FAILURE() 2023-06-15 11:55:56 +02:00
Kbuild.src tc: fix single-applet build 2018-01-13 21:37:20 +01:00
libnetlink.c libbb: reduce the overhead of single parameter bb_error_msg() calls 2019-07-02 11:35:03 +02:00
libnetlink.h ip: use rtnl_send_check() on flush commands, closes 6962 2019-05-22 13:54:46 +02:00
ll_addr.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
ll_map.c ip: fix crash in "ip neigh show" 2018-02-08 08:42:37 +01:00
ll_map.h libbb: auto_string() for efficient handling of temporary malloced stirngs 2015-10-09 17:59:56 +02:00
ll_proto.c *: slap on a few ALIGN1/2s where appropriate 2019-05-21 17:29:24 +02:00
ll_types.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
rt_names.c decrease paddign: gcc-9.3.1 slaps 32-byte alignment on arrays willy-nilly 2020-11-30 13:03:03 +01:00
rt_names.h libiproute: use itoa() where appropriate 2015-10-08 13:02:28 +02:00
rtm_map.c libiproute: reuse string constants 2020-11-21 17:23:13 +01:00
rtm_map.h libiproute: use itoa() where appropriate 2015-10-08 13:02:28 +02:00
utils.c libbb: add bit counting function, use where appropriate 2024-05-31 16:03:23 +02:00
utils.h libiproute: FACT_FUNCization 2017-04-07 17:15:40 +02:00