netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next 1/2] ip6_tunnel: put ip6tnl0 FB device into 'any' mode
@ 2014-10-21  8:11 Alexey Andriyanov
  2014-10-21  8:11 ` [net-next 2/2] ip6_tunnel: allow to change mode for the ip6tnl0 Alexey Andriyanov
  2014-10-22 16:47 ` [net-next 1/2] ip6_tunnel: put ip6tnl0 FB device into 'any' mode David Miller
  0 siblings, 2 replies; 6+ messages in thread
From: Alexey Andriyanov @ 2014-10-21  8:11 UTC (permalink / raw)
  To: netdev; +Cc: Alexey Andriyanov, David Miller, Eric Dumazet

The fallback device is in ipv6 mode by default.
The mode can not be changed in runtime, so there
is no way to decapsulate ip4in6 packets coming from
various sources without creating the specific tunnel
ifaces for each peer.

Cc: David Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Alexey Andriyanov <alan@al-an.info>
---
 net/ipv6/ip6_tunnel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 9409887..a48f212 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -1551,7 +1551,8 @@ static int __net_init ip6_fb_tnl_dev_init(struct net_device *dev)
 	if (err)
 		return err;
 
-	t->parms.proto = IPPROTO_IPV6;
+	/* allow any registered unrelying proto for the FB device */
+	t->parms.proto = 0;
 	dev_hold(dev);
 
 	ip6_tnl_link_config(t);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [net-next 1/2] ip6_tunnel: put ip6tnl0 FB device into 'any' mode
@ 2014-10-21  8:19 Alexey Andriyanov
  2014-10-21  8:19 ` [net-next 2/2] ip6_tunnel: allow to change mode for the ip6tnl0 Alexey Andriyanov
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Andriyanov @ 2014-10-21  8:19 UTC (permalink / raw)
  To: Roman Gushchin, netdev; +Cc: Alexey Andriyanov, David Miller, Eric Dumazet

The fallback device is in ipv6 mode by default.
The mode can not be changed in runtime, so there
is no way to decapsulate ip4in6 packets coming from
various sources without creating the specific tunnel
ifaces for each peer.

Cc: David Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Alexey Andriyanov <alan@al-an.info>
---
 net/ipv6/ip6_tunnel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 9409887..a48f212 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -1551,7 +1551,8 @@ static int __net_init ip6_fb_tnl_dev_init(struct net_device *dev)
 	if (err)
 		return err;
 
-	t->parms.proto = IPPROTO_IPV6;
+	/* allow any registered unrelying proto for the FB device */
+	t->parms.proto = 0;
 	dev_hold(dev);
 
 	ip6_tnl_link_config(t);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-22 16:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-21  8:11 [net-next 1/2] ip6_tunnel: put ip6tnl0 FB device into 'any' mode Alexey Andriyanov
2014-10-21  8:11 ` [net-next 2/2] ip6_tunnel: allow to change mode for the ip6tnl0 Alexey Andriyanov
2014-10-21 15:13   ` Nicolas Dichtel
2014-10-21 15:46     ` Alexey Andrianov
2014-10-22 16:47 ` [net-next 1/2] ip6_tunnel: put ip6tnl0 FB device into 'any' mode David Miller
2014-10-21  8:19 Alexey Andriyanov
2014-10-21  8:19 ` [net-next 2/2] ip6_tunnel: allow to change mode for the ip6tnl0 Alexey Andriyanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).