Skip to content

Commit

Permalink
sit: set name of device back to struct parms
Browse files Browse the repository at this point in the history
addrconf_set_sit_dstaddr will use parms->name.

Signed-off-by: zhang kai <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
zhangkaiheb authored and davem330 committed Jun 3, 2021
1 parent a8db57c commit 261ba78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/ipv6/sit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 261ba78

Please sign in to comment.