netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Alexey Andriyanov" <alan@al-an.info>
To: netdev@vger.kernel.org
Cc: Alexey Andriyanov <alan@al-an.info>,
	David Miller <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>
Subject: [net-next 1/2] ip6_tunnel: put ip6tnl0 FB device into 'any' mode
Date: Tue, 21 Oct 2014 12:11:27 +0400	[thread overview]
Message-ID: <1413879088-13513-1-git-send-email-alan@al-an.info> (raw)

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

             reply	other threads:[~2014-10-21  8:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-21  8:11 Alexey Andriyanov [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1413879088-13513-1-git-send-email-alan@al-an.info \
    --to=alan@al-an.info \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).