Patchwork IPv6: fix to set device name when new IPv6 over IPv6 tunnel device is created.

login
register
mail settings
Submitter Noriaki TAKAMIYA
Date Feb. 9, 2009, 6:46 p.m.
Message ID <20090210.034642.74753917.takamiya@linux-ipv6.org>
Download mbox | patch
Permalink /patch/22768/
State Accepted
Delegated to: David Miller
Headers show

Comments

Noriaki TAKAMIYA - Feb. 9, 2009, 6:46 p.m.
Hi,

  When the user creates IPv6 over IPv6 tunnel, the device name created
  by the kernel isn't set to t->parm.name, which is referred as the
  result of ioctl().

  Signed-off-by: Noriaki TAKAMIYA <takamiya@po.ntts.co.jp>
---
 net/ipv6/ip6_tunnel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - Feb. 9, 2009, 11:01 p.m.
From: Noriaki TAKAMIYA <takamiya@linux-ipv6.org>
Date: Tue, 10 Feb 2009 03:46:42 +0900 (JST)

>   When the user creates IPv6 over IPv6 tunnel, the device name created
>   by the kernel isn't set to t->parm.name, which is referred as the
>   result of ioctl().
> 
>   Signed-off-by: Noriaki TAKAMIYA <takamiya@po.ntts.co.jp>

Patch applied, thank you.
--
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

Patch

diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 58e2b0d..d994c55 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -249,8 +249,8 @@  static struct ip6_tnl *ip6_tnl_create(struct net *net, struct ip6_tnl_parm *p)
 	}
 
 	t = netdev_priv(dev);
-	ip6_tnl_dev_init(dev);
 	t->parms = *p;
+	ip6_tnl_dev_init(dev);
 
 	if ((err = register_netdevice(dev)) < 0)
 		goto failed_free;