Skip to contentSkip to conversation

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

PATCH In review Noriaki TAKAMIYA 2 participants 2 messages Feb 9, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IPv6: fix to set device name when new IPv6 over IPv6 tunnel device is created.

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().

---
 net/ipv6/ip6_tunnel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/ipv6/ip6_tunnel.c +1 -1
index 58e2b0d..d994c55 100644
@@ -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;
Signature · 1 line
Noriaki TAKAMIYA
maintainer
#1 lore raw

From: Noriaki TAKAMIYA <[email protected]>
Date: Tue, 10 Feb 2009 03:46:42 +0900 (JST)

Quoted 5 lines

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().

Patch applied, thank you.