device: remove useless ipv6 route addition
Link-local multicast routes are handled by kernel. Just try pinging ff02::1%eth0 on a clean system without IP configuration.
This commit is contained in:

committed by
Dan Williams

parent
78e9c564b2
commit
110888c782
@@ -2069,8 +2069,6 @@ dhcp6_start (NMDevice *self,
|
||||
NMActStageReturn ret = NM_ACT_STAGE_RETURN_FAILURE;
|
||||
guint8 *anycast = NULL;
|
||||
const char *ip_iface;
|
||||
const struct in6_addr dest = { { { 0xFF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } };
|
||||
int err;
|
||||
|
||||
if (!connection) {
|
||||
connection = nm_device_get_connection (self);
|
||||
@@ -2093,18 +2091,6 @@ dhcp6_start (NMDevice *self,
|
||||
priv->dhcp6_ip6_config = NULL;
|
||||
}
|
||||
|
||||
/* DHCPv6 communicates with the DHCPv6 server via two multicast addresses,
|
||||
* ff02::1:2 (link-scope) and ff05::1:3 (site-scope). Make sure we have
|
||||
* a multicast route (ff00::/8) for client <-> server communication.
|
||||
*/
|
||||
err = nm_system_set_ip6_route (priv->ip_iface ? priv->ip_ifindex : priv->ifindex,
|
||||
&dest, 8, NULL, 256, 0, RTPROT_BOOT, RT_TABLE_LOCAL, NULL);
|
||||
if (err && (err != -NLE_EXIST)) {
|
||||
nm_log_err (LOGD_DEVICE | LOGD_IP6,
|
||||
"(%s): failed to add IPv6 multicast route: %s",
|
||||
priv->ip_iface ? priv->ip_iface : priv->iface, nl_geterror (err));
|
||||
}
|
||||
|
||||
ip_iface = nm_device_get_ip_iface (self);
|
||||
priv->dhcp6_client = nm_dhcp_manager_start_ip6 (priv->dhcp_manager,
|
||||
ip_iface,
|
||||
|
Reference in New Issue
Block a user