lkml.org 
[lkml]   [2012]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[ 26/41] IPv6: Fix not join all-router mcast group when forwarding set.
    3.2-stable review patch.  If anyone has any objections, please let me know.

    ------------------


    From: Li Wei <lw@cn.fujitsu.com>

    [ Upstream commit d6ddef9e641d1229d4ec841dc75ae703171c3e92 ]

    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 <lw@cn.fujitsu.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    net/ipv6/addrconf.c | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/net/ipv6/addrconf.c
    +++ b/net/ipv6/addrconf.c
    @@ -434,6 +434,10 @@ static struct inet6_dev * ipv6_add_dev(s
    /* 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;
    }




    \
     
     \ /
      Last update: 2012-03-17 00:47    [W:5.466 / U:0.232 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site