Commit 261ba78c authored by zhang kai's avatar zhang kai Committed by David S. Miller

sit: set name of device back to struct parms

addrconf_set_sit_dstaddr will use parms->name.
Signed-off-by: default avatarzhang kai <zhangkaiheb@126.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a8db57c1
...@@ -271,6 +271,9 @@ static struct ip_tunnel *ipip6_tunnel_locate(struct net *net, ...@@ -271,6 +271,9 @@ static struct ip_tunnel *ipip6_tunnel_locate(struct net *net,
if (ipip6_tunnel_create(dev) < 0) if (ipip6_tunnel_create(dev) < 0)
goto failed_free; goto failed_free;
if (!parms->name[0])
strcpy(parms->name, dev->name);
return nt; return nt;
failed_free: failed_free:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment