mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03:00
network: disable NDisc for CAN interfaces
We already disabled DHCP clients for CAN interfaces.
This commit is contained in:
parent
ba4c7184b3
commit
f4ef1c196c
@ -6,6 +6,7 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/icmp6.h>
|
||||
#include <linux/if.h>
|
||||
#include <linux/if_arp.h>
|
||||
|
||||
#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.
|
||||
|
Loading…
Reference in New Issue
Block a user