diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 0f335c67eb8..be29337ea39 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -433,6 +433,10 @@ static struct inet6_dev * ipv6_add_dev(struct net_device *dev) | |||
433 | /* Join all-node multicast group */ | 433 | /* Join all-node multicast group */ |
434 | ipv6_dev_mc_inc(dev, &in6addr_linklocal_allnodes); | 434 | ipv6_dev_mc_inc(dev, &in6addr_linklocal_allnodes); |
435 | 435 | ||
436 | /* Join all-router multicast group if forwarding is set */ | ||
437 | if (ndev->cnf.forwarding && dev && (dev->flags & IFF_MULTICAST)) | ||
438 | ipv6_dev_mc_inc(dev, &in6addr_linklocal_allrouters); | ||
439 | |||
436 | return ndev; | 440 | return ndev; |
437 | } | 441 | } |
438 | 442 | ||