diff mbox

[net] ipv6: gre: setup default multicast routes over PtP links

Message ID 1444321179-26425-1-git-send-email-hannes@stressinduktion.org
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Hannes Frederic Sowa Oct. 8, 2015, 4:19 p.m. UTC
GRE point-to-point interfaces should also support ipv6 multicast. Setting
up default multicast routes on interface creation was forgotten. Add it.

Bugzilla: <https://bugzilla.kernel.org/show_bug.cgi?id=103231>
Cc: Julien Muchembled <jm@jmuchemb.eu>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Nicolas Dumazet <ndumazet@google.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
---
 net/ipv6/addrconf.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

David Miller Oct. 11, 2015, 12:33 p.m. UTC | #1
From: Hannes Frederic Sowa <hannes@stressinduktion.org>
Date: Thu,  8 Oct 2015 18:19:39 +0200

> GRE point-to-point interfaces should also support ipv6 multicast. Setting
> up default multicast routes on interface creation was forgotten. Add it.
> 
> Bugzilla: <https://bugzilla.kernel.org/show_bug.cgi?id=103231>
> Cc: Julien Muchembled <jm@jmuchemb.eu>
> Cc: Eric Dumazet <edumazet@google.com>
> Cc: Nicolas Dumazet <ndumazet@google.com>
> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index c8380f1..3aed22f 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -3119,6 +3119,8 @@  static void addrconf_gre_config(struct net_device *dev)
 	}
 
 	addrconf_addr_gen(idev, true);
+	if (dev->flags & IFF_POINTOPOINT)
+		addrconf_add_mroute(dev);
 }
 #endif