From f4ef1c196c6133a4048eb12766eb0822274e69a2 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 31 Jan 2022 12:54:21 +0900 Subject: network: disable NDisc for CAN interfaces We already disabled DHCP clients for CAN interfaces. --- src/network/networkd-ndisc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/network/networkd-ndisc.c') diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 4193b51093..06c4366b70 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -6,6 +6,7 @@ #include #include #include +#include #include "sd-ndisc.h" @@ -34,6 +35,9 @@ bool link_ipv6_accept_ra_enabled(Link *link) { if (link->flags & IFF_LOOPBACK) return false; + if (link->iftype == ARPHRD_CAN) + return false; + if (link->hw_addr.length != ETH_ALEN && !streq_ptr(link->kind, "wwan")) /* Currently, only interfaces whose MAC address length is ETH_ALEN are supported. * Note, wwan interfaces may be assigned MAC address slightly later. -- cgit v1.2.3