Bug #344

Fwd: [PATCH v2] IPv6: Fix not join all-router mcast group when forwarding set.

Added by David Taht about 1 year ago. Updated about 1 year ago.

Status:New Start date:
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:- Spent time: -
Target version:1st Public Cerowrt release

Description

this patch (I figure will make rc7) might fix some issues

---------- Forwarded message ----------
From: Li Wei <>
Date: Mon, Mar 5, 2012 at 4:45 PM
Subject: [PATCH v2] IPv6: Fix not join all-router mcast group when
forwarding set.
To: David Miller <>
Cc:

When forwarding was set and a new net device is register,
we need add this device to the all-router mcast group.

Signed-off-by: Li Wei <>
---
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 c02280a..6b8ebc5 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@ -434,6 +434,10 @ static struct inet6_dev * ipv6_add_dev(struct
net_device dev)
/
Join all-node multicast group */
ipv6_dev_mc_inc(dev, &in6addr_linklocal_allnodes);

+ /* Join all-router multicast group if forwarding is set */
+ if (ndev->cnf.forwarding && dev && (dev->flags & IFF_MULTICAST))
+ ipv6_dev_mc_inc(dev, &in6addr_linklocal_allrouters);
+
return ndev;
}

History

Updated by Dave Täht about 1 year ago

  • Target version set to 1st Public Cerowrt release

Also available in: Atom PDF