Skip to content

Commit ba46ee4

Browse files
David Aherndavem330
authored andcommitted
net: ipv6: Do not add multicast route for l3 master devices
L3 master devices are virtual devices similar to the loopback device. Link local and multicast routes for these devices do not make sense. The ipv6 addrconf code already skips adding a linklocal address; do the same for the mcast route. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent cd2a9e6 commit ba46ee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/addrconf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,7 @@ static struct inet6_dev *addrconf_add_dev(struct net_device *dev)
22542254
return ERR_PTR(-EACCES);
22552255

22562256
/* Add default multicast route */
2257-
if (!(dev->flags & IFF_LOOPBACK))
2257+
if (!(dev->flags & IFF_LOOPBACK) && !netif_is_l3_master(dev))
22582258
addrconf_add_mroute(dev);
22592259

22602260
return idev;

0 commit comments

Comments
 (0)