Skip to content

Commit

Permalink
IPv6: fix to set device name when new IPv6 over IPv6 tunnel device is…
Browse files Browse the repository at this point in the history
… created.

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Noriaki TAKAMIYA authored and David S. Miller committed Feb 9, 2009
1 parent 8707bdd commit 20461c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/ip6_tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 20461c1

Please sign in to comment.