mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 00:34:52 +00:00
sit: set name of device back to struct parms
addrconf_set_sit_dstaddr will use parms->name. Signed-off-by: zhang kai <zhangkaiheb@126.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a8db57c1d2
commit
261ba78cc3
1 changed files with 3 additions and 0 deletions
|
@ -271,6 +271,9 @@ static struct ip_tunnel *ipip6_tunnel_locate(struct net *net,
|
|||
if (ipip6_tunnel_create(dev) < 0)
|
||||
goto failed_free;
|
||||
|
||||
if (!parms->name[0])
|
||||
strcpy(parms->name, dev->name);
|
||||
|
||||
return nt;
|
||||
|
||||
failed_free:
|
||||
|
|
Loading…
Add table
Reference in a new issue